mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
logging: Pass more format arguments to logging.
Commit bdc365d0fe (#14852) missed this
because of https://github.com/returntocorp/semgrep/issues/831.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
824d97987b
commit
333f7d16c9
@@ -38,7 +38,7 @@ try:
|
||||
# the Zulip user, and then unpack it from that directory, so that
|
||||
# we can unpack using the Zulip user even if the original path was
|
||||
# not readable by the Zulip user.
|
||||
logging.info("Archiving the tarball under %s" % (TARBALL_ARCHIVE_PATH,))
|
||||
logging.info("Archiving the tarball under %s", TARBALL_ARCHIVE_PATH)
|
||||
os.makedirs(TARBALL_ARCHIVE_PATH, exist_ok=True)
|
||||
archived_tarball_path = os.path.join(TARBALL_ARCHIVE_PATH, os.path.basename(tarball_path))
|
||||
shutil.copy(tarball_path, archived_tarball_path)
|
||||
|
||||
@@ -43,7 +43,7 @@ os_version = distro_info['VERSION_ID']
|
||||
|
||||
if (vendor, os_version) in UNSUPPORTED_DISTROS:
|
||||
# Link to documentation for how to correctly upgrade the OS.
|
||||
logging.critical("Unsupported platform: {} {}".format(vendor, os_version))
|
||||
logging.critical("Unsupported platform: %s %s", vendor, os_version)
|
||||
logging.info("Sorry! The support for your OS has been discontinued.\n"
|
||||
"Please upgrade your OS to a supported release first.\n"
|
||||
"See https://zulip.readthedocs.io/en/latest/production/"
|
||||
|
||||
Reference in New Issue
Block a user