mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Improve performance of http auth logging (#96464)
Avoid the argument lookups when debug logging is not enabled
This commit is contained in:
@@ -224,7 +224,7 @@ async def async_setup_auth(hass: HomeAssistant, app: Application) -> None:
|
||||
authenticated = True
|
||||
auth_type = "signed request"
|
||||
|
||||
if authenticated:
|
||||
if authenticated and _LOGGER.isEnabledFor(logging.DEBUG):
|
||||
_LOGGER.debug(
|
||||
"Authenticated %s for %s using %s",
|
||||
request.remote,
|
||||
|
Reference in New Issue
Block a user