Change log-level "Executing handler" msg to debug

closes #5143
This commit is contained in:
Matthias 2021-06-17 06:57:35 +02:00
parent 0af9bcef60
commit a49ca9cbf7
2 changed files with 4 additions and 2 deletions

View File

@ -56,7 +56,7 @@ def authorized_only(command_handler: Callable[..., None]) -> Callable[..., Any]:
)
return wrapper
logger.info(
logger.debug(
'Executing handler: %s for chat_id: %s',
command_handler.__name__,
chat_id

View File

@ -2,6 +2,7 @@
# pragma pylint: disable=protected-access, unused-argument, invalid-name
# pragma pylint: disable=too-many-lines, too-many-arguments
import logging
import re
from datetime import datetime
from functools import reduce
@ -120,7 +121,7 @@ def test_cleanup(default_conf, mocker, ) -> None:
def test_authorized_only(default_conf, mocker, caplog, update) -> None:
patch_exchange(mocker)
caplog.set_level(logging.DEBUG)
default_conf['telegram']['enabled'] = False
bot = FreqtradeBot(default_conf)
rpc = RPC(bot)
@ -136,6 +137,7 @@ def test_authorized_only(default_conf, mocker, caplog, update) -> None:
def test_authorized_only_unauthorized(default_conf, mocker, caplog) -> None:
patch_exchange(mocker)
caplog.set_level(logging.DEBUG)
chat = Chat(0xdeadbeef, 0)
update = Update(randint(1, 100))
update.message = Message(randint(1, 100), datetime.utcnow(), chat)