logging: add stop message, change default level

This commit is contained in:
A.M. Rowsell 2026-06-12 02:00:02 -04:00
commit cd07e9806f
Signed by: amr
GPG key ID: E0879EDBDB0CA7B1

View file

@ -337,7 +337,7 @@ class Discorss:
logging.basicConfig(
filename=self.log_file_path,
encoding="utf-8",
level=logging.INFO,
level=logging.DEBUG,
datefmt="%m/%d/%Y %H:%M:%S",
format="%(asctime)s [%(threadName)s] -> %(levelname)s: %(message)s",
)
@ -392,6 +392,8 @@ class Discorss:
self.app_config["lastupdate"] = self.now
with open(self.config_file_path, "w") as config_file:
json.dump(self.app_config, config_file, indent=4)
self.logger.info("Stopping DiscoRSS version {}...".format(self.APP_VERSION))
return