# HG changeset patch # User Mads Kiilerich # Date 2020-01-08 03:11:31 # Node ID 8af15d2789fed20d0c36ae288a2faee8a92b7931 # Parent 0088a4b2c84ed3605bb605d11deee80fd3597e4b py3: avoid logging of b'' strings for "config from db" diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -337,11 +337,10 @@ def make_ui(repo_path=None): sa = meta.Session() for ui_ in sa.query(Ui).all(): if ui_.ui_active: - ui_val = b'' if ui_.ui_value is None else safe_bytes(ui_.ui_value) log.debug('config from db: [%s] %s=%r', ui_.ui_section, - ui_.ui_key, ui_val) + ui_.ui_key, ui_.ui_value) baseui.setconfig(ascii_bytes(ui_.ui_section), ascii_bytes(ui_.ui_key), - ui_val) + b'' if ui_.ui_value is None else safe_bytes(ui_.ui_value)) # force set push_ssl requirement to False, Kallithea handles that baseui.setconfig(b'web', b'push_ssl', False)