deltachat-bot / faqbot

A simple FAQ Bot for Delta Chat groups
GNU General Public License v3.0
4 stars 1 forks source link

Setup logging when starting the bot #1

Closed link2xt closed 1 year ago

link2xt commented 1 year ago

I plan to add more logging using Python standard logging module to the deltachat-rpc-client library.

For the logs to be printed, logging should be set up at the application start like this: https://github.com/deltachat/mailadm/blob/532235ec3bd66f182d58acf39eeabd0e946090e0/gunicorn.conf.py#L5

link2xt commented 1 year ago

Actually it is set up by the CLI library: https://github.com/deltachat-bot/deltabot-cli-py/blob/10ce04f3f6f6faa8775305c19218b2d50a17b50a/deltabot_cli/cli.py#L138-L142