-
Notifications
You must be signed in to change notification settings - Fork 471
[Feature Request]: show the name of PLC in logged warnings #2495
Description
What would you like to happen?
Protocol errors should show some information to identify the PLC where a specific error comes from.
When integrating both the S7 and the S7-light driver, I get some warn logs if parameters are not perfectly right. Especially with connections to multiple PLCs, it becomes impossible to trace these to the related device.
Since most of the logs are executed in some worker thread, also the thread-name can not help.
Most typical example is:
11.03.2026 17:45:14.096647 [oopGroup-3-1] WARN o.a.p.j.s.readwrite.protocol.S7ProtocolLogic Got an error response from the PLC. This particular response code usually indicates that PUT/GET is not enabled on the PLC.
Expected message could be like:
"Got an error response from PLC url. This particular response code usually indicates that PUT/GET is not enabled on the PLC."
Also it would be relly helpful to distinguish between the error codes for "context not supported", "desired item not available" and other causes.
For example. I always get this log message "... PUT/GET not enabled ..." from different root causes, e.g. (messages from s7connector):
- context is not supported (is that the real PUT/GET not enabled?)
- PUT/GET is enabled but DBS is not defined in the PLC.
- reading more bytes from a DBS than available
Thank you very much, your lib is great!
Programming Languages
- plc4j
- plc4go
- plc4c
- plc4net
Protocols
- AB-Ethernet
- ADS /AMS
- BACnet/IP
- CANopen
- DeltaV
- DF1
- EtherNet/IP
- Firmata
- KNXnet/IP
- Modbus
- OPC-UA
- S7