Skip to content

Commit cfd6640

Browse files
committed
Update changelog, change log formatter for repl verbose mode
1 parent 97227ab commit cfd6640

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 2.0.2
2+
-----------------------------------------------------------
3+
* Fix Infinite sleep loop in RTU Framer
4+
* Add pygments as extra requirement for repl
5+
* More verbose logs for repl
6+
17
Version 2.0.1
28
-----------------------------------------------------------
39
* Fix unicode decoder error with BinaryPayloadDecoder in some platforms

pymodbus/repl/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def main(ctx, verbose):
211211
if verbose:
212212
global log
213213
import logging
214-
format = '%(asctime)-15s %(message)s'
214+
format = ('%(asctime)-15s %(threadName)-15s '
215+
'%(levelname)-8s %(module)-15s:%(lineno)-8s %(message)s')
215216
log = logging.getLogger('pymodbus')
216217
logging.basicConfig(format=format)
217218
log.setLevel(logging.DEBUG)

0 commit comments

Comments
 (0)