Skip to content

Commit 28cb5b1

Browse files
committed
Fix SysLogHandler reference
1 parent 893b514 commit 28cb5b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pbench/agent/tool_meister.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import hashlib
3939
import json
4040
import logging
41+
import logging.handlers
4142
import os
4243
import requests
4344
import requests.exceptions
@@ -1215,7 +1216,7 @@ def get_logger(PROG, daemon=False):
12151216
if unit_tests or not daemon:
12161217
sh = logging.StreamHandler()
12171218
else:
1218-
sh = logging.SysLogHandler()
1219+
sh = logging.handlers.SysLogHandler()
12191220
sh.setLevel(log_level)
12201221
shf = logging.Formatter(fmtstr_ut if unit_tests else fmtstr)
12211222
sh.setFormatter(shf)

0 commit comments

Comments
 (0)