From: Adam Dullage Date: Thu, 19 Aug 2021 06:52:33 +0000 (+0100) Subject: Log as INFO X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e285fb32f0dfdb7eb04374dc9b969985d9b568d4;p=flatnotes.git Log as INFO --- diff --git a/flatnotes/flatnotes.py b/flatnotes/flatnotes.py index 5be1dd3..6cff52d 100644 --- a/flatnotes/flatnotes.py +++ b/flatnotes/flatnotes.py @@ -3,7 +3,6 @@ import logging import os from datetime import datetime from typing import List, Tuple -from fastapi.params import File import whoosh from whoosh import writing @@ -154,12 +153,12 @@ class Flatnotes(object): # Delete missing if not os.path.exists(idx_filepath): writer.delete_by_term("filename", idx_filename) - logging.debug(f"'{idx_filename}' removed from index") + logging.info(f"'{idx_filename}' removed from index") # Update modified elif ( os.path.getmtime(idx_filepath) != idx_note["last_modified"] ): - logging.debug(f"'{idx_filename}' updated") + logging.info(f"'{idx_filename}' updated") self._add_note_to_index(writer, Note(self, idx_filename)) indexed.add(idx_filename) # Ignore already indexed @@ -169,7 +168,7 @@ class Flatnotes(object): for note in self.get_notes(): if note.filename not in indexed: self._add_note_to_index(writer, note) - logging.debug(f"'{note.filename}' added to index") + logging.info(f"'{note.filename}' added to index") writer.commit() self.last_index_update = datetime.now()