Added separate log suggestions

This commit is contained in:
localhost_frssoft 2022-09-10 23:02:36 +03:00
parent 27b51fcd3f
commit d098506a32
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,5 +2,6 @@
.auth .auth
.auth_kinopoisk .auth_kinopoisk
.app_sessions .app_sessions
*.log
*.sqlite *.sqlite

View File

@ -9,6 +9,7 @@ import sys
def main(): def main():
logger.remove() logger.remove()
logger.add(sink=sys.stderr, level=logger_default_level) logger.add(sink=sys.stderr, level=logger_default_level)
logger.add(sink='suggestions.log', level='INFO', filter='src.listener_context:scan_context_thread')
listener_mention.run_scan_notif() # Слушаем упоминания в фоне listener_mention.run_scan_notif() # Слушаем упоминания в фоне
time.sleep(1) time.sleep(1)