Skip to content

Commit

Permalink
Reduce loglevels
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Ott <[email protected]>
  • Loading branch information
DerOetzi committed Aug 31, 2024
1 parent d80c559 commit 1d36058
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions solaredge2mqtt/services/modbus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _read_from_modbus(

for register_slice in registers.registers_sliced():

logger.debug(
logger.trace(
f"Read {register_slice.registers_length()} registers beginning at {register_slice.registers_start_address() + offset}"
)

Expand All @@ -126,7 +126,7 @@ def _read_from_modbus(
)

if result.isError():
logger.debug(f"Modbus read error: {result}")
logger.trace(f"Modbus read error: {result}")
else:
decoder = BinaryPayloadDecoder.fromRegisters(
result.registers,
Expand All @@ -136,7 +136,7 @@ def _read_from_modbus(

data = register_slice.payload_decode(decoder, data)
except ModbusException as error:
logger.debug(f"Modbus read exception: {error}")
logger.trace(f"Modbus read exception: {error}")

return data

Expand Down
1 change: 0 additions & 1 deletion solaredge2mqtt/services/modbus/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from influxdb_client import Point
from pydantic import Field

from solaredge2mqtt.core.exceptions import InvalidDataException
from solaredge2mqtt.core.logging import logger
from solaredge2mqtt.core.models import Solaredge2MQTTBaseModel
from solaredge2mqtt.services.homeassistant.models import (
Expand Down

0 comments on commit 1d36058

Please sign in to comment.