Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Logging for the adapter #525

Open
fortschritt311 opened this issue Jun 13, 2024 · 0 comments
Open

Disable Logging for the adapter #525

fortschritt311 opened this issue Jun 13, 2024 · 0 comments

Comments

@fortschritt311
Copy link

Hi.
I have the following problem when using the modbus adapter: By default, the log level can be set in the adapter configuration. The familiar 5 levels are available (All, Debug, Info, Warn, Error).

I use the adapter to receive data from my inverter (Growatt Mic600 with flashed ShineLanX stick).

If no power is produced at night, the inverter switches off and with it the ShineLanX stick. Because the stick is not available at this time the adapter now writes to the log all night long:

modbus.0 2024-06-12 22:23:57.637 error Client in error state.
modbus.0 2024-06-12 22:23:57.636 error Socket Error 

In this case, it would be a great advantage if you could switch off logging to avoid having hundreds of errors in the log all the time. For example with a new log level "Deactivated" or "Disabled".

Regards
Maik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants