Skip to content

Commit b310d65

Browse files
committed
Changed logger to lazy formatting
1 parent d50f456 commit b310d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/plugin/proxy_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def before_upstream_connection(
103103
except ValueError:
104104
pass
105105
except Exception as e:
106-
logger.error(f"Unexpected error happened before upstream connection: {e}")
106+
logger.error("Unexpected error happened before upstream connection: %s", e)
107107
# If chosen proxy is the local instance, bypass upstream proxies
108108
assert self._endpoint.port and self._endpoint.hostname
109109
if self._endpoint.port == self.flags.port and \

0 commit comments

Comments
 (0)