mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
logging: Pass format arguments to logging.
https://docs.python.org/3/howto/logging.html#optimization Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
82f629091a
commit
bdc365d0fe
@@ -86,4 +86,6 @@ class TestEmbeddedBotFailures(ZulipTestCase):
|
||||
content="@**{}** foo".format(bot_profile.full_name),
|
||||
topic_name="bar")
|
||||
logging_error_mock.assert_called_once_with(
|
||||
"Error: User {} has bot with invalid embedded bot service invalid".format(bot_profile.id))
|
||||
"Error: User %s has bot with invalid embedded bot service %s",
|
||||
bot_profile.id, "invalid",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user