Skip to content

Commit 17216d8

Browse files
committed
log: fix bug with logging
The arg is added as `str` but the fmt requires `int`, causes exception when turning on python logging -- fix. Signed-off-by: Christian Hopps <[email protected]>
1 parent 3072af0 commit 17216d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libyang/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def libyang_c_logging_callback(level, msg, data_path, schema_path, line):
3838
args.append(c2str(schema_path))
3939
if line != 0:
4040
fmt += " line %u"
41-
args.append(str(line))
41+
args.append(line)
4242
LOG.log(LOG_LEVELS.get(level, logging.NOTSET), fmt, *args)
4343

4444

0 commit comments

Comments
 (0)