mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +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
@@ -210,7 +210,7 @@ def log_management_command(cmd: str, log_path: str) -> None:
|
||||
logger.addHandler(file_handler)
|
||||
logger.setLevel(logging.INFO)
|
||||
|
||||
logger.info("Ran '%s'" % (cmd,))
|
||||
logger.info("Ran '%s'", cmd)
|
||||
|
||||
def get_environment() -> str:
|
||||
if os.path.exists(DEPLOYMENTS_DIR):
|
||||
|
||||
Reference in New Issue
Block a user