mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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
|
authenticated = True
|
||||||
auth_type = "signed request"
|
auth_type = "signed request"
|
||||||
|
|
||||||
if authenticated:
|
if authenticated and _LOGGER.isEnabledFor(logging.DEBUG):
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Authenticated %s for %s using %s",
|
"Authenticated %s for %s using %s",
|
||||||
request.remote,
|
request.remote,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user