soxidus / Boardgame-Bot

A Boardgame Bot for your Telegram group to plan/manage gamenights and suggest games to play.
MIT License
2 stars 0 forks source link

Debug mode #95

Closed karacolada closed 4 years ago

karacolada commented 4 years ago

This branch introduces a debug mode.

CHANGES:

MOTIVATION: When testing, logging to the console is perfect. However, in a working setup, it's worth very little. In the past, there have been problems with logging into a file on the Raspberry Pi (our preferred platform) because of persistence. Hence, I've introduced the new debugging modes "Group" and "Private" that send messages to specific groups or users containing the logs whenever an error occurs.

NEW OPTIONS FOR /src/main.py:

-d <mode>:         logging enabled, mode can be nothing or one of (group, private, file)
-d file -f <path>: log into specified file

OVERVIEW: