logging: add stop message, change default level
This commit is contained in:
parent
84c0b40edf
commit
cd07e9806f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue