Closed gitMiguel closed 1 year ago
While developing a modbus tool based on this library and switching loggin to debug I noticed these lines repeating quite often. IMO they should go to TRACE. Is there a reason why they are not? You think they could they be moved?
2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - reset() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark=0 pos=0 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark=0 pos=0 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=7 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - reset() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark=0 pos=0 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=0 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=1 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=2 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=3 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=4 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=5 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=6 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=7 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=8 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=9 2022-02-06 09:37:00,517 [DEBUG] [mod.modbus.util.BitVector] - Get bit #0
2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - reset() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark=0 pos=0 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark=0 pos=0 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=7 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - reset() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - mark=0 pos=0 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,516 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=0 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=1 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=2 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=3 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=4 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=5 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=6 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=7 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=8 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - read() 2022-02-06 09:37:00,517 [DEBUG] [.FastByteArrayInputStream] - count=10 pos=9
2022-02-06 09:37:00,517 [DEBUG] [mod.modbus.util.BitVector] - Get bit #0
How did you set up the log level?
I'm developing with eclipse and use log4j. I have defined the logger like this: <Logger name="com.ghgande.j2mod.modbus" level="debug"/>.
<Logger name="com.ghgande.j2mod.modbus" level="debug"/>
Agreed - changed in next build
While developing a modbus tool based on this library and switching loggin to debug I noticed these lines repeating quite often. IMO they should go to TRACE. Is there a reason why they are not? You think they could they be moved?
Example log