Skip to content

Commit

Permalink
update default logger to INFO (lbbrhzn#520)
Browse files Browse the repository at this point in the history
I've notice my log contains a lot of information regarding OCPP
This PR suggest to reduce the amount of logs for a regular HA
environment.
  • Loading branch information
ohadlevy authored May 27, 2022
1 parent 6f2c5b6 commit 3f7f92c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/ocpp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)

_LOGGER: logging.Logger = logging.getLogger(__package__)
logging.getLogger(DOMAIN).setLevel(logging.DEBUG)
logging.getLogger(DOMAIN).setLevel(logging.INFO)

AUTH_LIST_SCHEMA = vol.Schema(
{
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ocpp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
)

_LOGGER: logging.Logger = logging.getLogger(__package__)
logging.getLogger(DOMAIN).setLevel(logging.DEBUG)
logging.getLogger(DOMAIN).setLevel(logging.INFO)
# Uncomment these when Debugging
# logging.getLogger("asyncio").setLevel(logging.DEBUG)
# logging.getLogger("websockets").setLevel(logging.DEBUG)
Expand Down

0 comments on commit 3f7f92c

Please sign in to comment.