PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

logging level not working?

Open nearalias opened this issue 10 years ago • 4 comments

Expected Behavior

log messages from event_manager should not be shown to the user if level='debug', but "debug": false in config.

Actual Behavior

screen shot 2016-08-10 at 06 19 28 screen shot 2016-08-10 at 06 19 46 ### Your config.json (remove your credentials and any other private info) screen shot 2016-08-10 at 06 20 01 ### Steps to Reproduce

run latest dev

Other Information

OS: Mac OS Git Commit: 0c3c4c0 Python Version: 2.7.12

nearalias avatar Aug 10 '16 10:08 nearalias

+1 this is so cluttered

smith-and-web avatar Aug 10 '16 12:08 smith-and-web

You are using the log handler that has colors. It doesn't use the logging module from Python's standard library, like the rest of the bot, so it won't respect logging configurations.

douglascamata avatar Aug 11 '16 00:08 douglascamata

It's because a bug in the file step_walker.py see #3484

FranWatcher avatar Aug 11 '16 09:08 FranWatcher

Repeating: this is a problem of the coloured logger, because it doesn't use the Python's logging module and thus doesn't respect any logging level at all.

douglascamata avatar Aug 11 '16 10:08 douglascamata