Skip to content

Commit 3f7f92c

Browse files
authored
update default logger to INFO (#520)
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.
1 parent 6f2c5b6 commit 3f7f92c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/ocpp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
)
2929

3030
_LOGGER: logging.Logger = logging.getLogger(__package__)
31-
logging.getLogger(DOMAIN).setLevel(logging.DEBUG)
31+
logging.getLogger(DOMAIN).setLevel(logging.INFO)
3232

3333
AUTH_LIST_SCHEMA = vol.Schema(
3434
{

custom_components/ocpp/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
)
102102

103103
_LOGGER: logging.Logger = logging.getLogger(__package__)
104-
logging.getLogger(DOMAIN).setLevel(logging.DEBUG)
104+
logging.getLogger(DOMAIN).setLevel(logging.INFO)
105105
# Uncomment these when Debugging
106106
# logging.getLogger("asyncio").setLevel(logging.DEBUG)
107107
# logging.getLogger("websockets").setLevel(logging.DEBUG)

0 commit comments

Comments
 (0)