Queer European MD passionate about IT
Browse Source

Set class log files

Davte 5 years ago
parent
commit
d888d27ef6
2 changed files with 3 additions and 1 deletions
  1. 1 1
      ciclopibot/__init__.py
  2. 2 0
      ciclopibot/bot.py

+ 1 - 1
ciclopibot/__init__.py

@@ -3,6 +3,6 @@
 __author__ = "Davide Testa"
 __email__ = "davide@davte.it"
 __license__ = "GNU General Public License v3.0"
-__version__ = "1.0.14"
+__version__ = "1.0.15"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"

+ 2 - 0
ciclopibot/bot.py

@@ -131,6 +131,8 @@ if __name__ == '__main__':
                              database_url=f'{path}/data/ciclopi.db',
                              hostname=hostname, certificate=certificate)
     bot.set_path(path)
+    bot.set_class_log_file_name(log_file_name)
+    bot.set_class_errors_file_name(errors_file_name)
     bot.set_unknown_command_message(
         "Comando sconosciuto!\n"
         "Scrivi /help per visualizzare la guida."