Skip to content

Commit 4bea8cc

Browse files
authored
convert string type port parameter into int type
In our cluster, we use syslog to collect reframe tests data. We have found SysLogHandler require int type port instead of str type in codes now. It works fine in our cluster after change.
1 parent e54c3a5 commit 4bea8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reframe/core/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _create_syslog_handler(site_config, config_prefix):
222222
except ValueError:
223223
pass
224224
else:
225-
address = (host, port)
225+
address = (host, int(port))
226226

227227
facility = site_config.get(f'{config_prefix}/facility')
228228
try:

0 commit comments

Comments
 (0)