mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Improve performance of http auth logging (#96464)
Avoid the argument lookups when debug logging is not enabled
This commit is contained in:
parent
52c7ad130d
commit
bc9b763688
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user