Skip to content

Commit ef4a41c

Browse files
committed
Fixed a bytes/str issue with the arguments to syslog.openlog()
- Legacy-Id: 16460
1 parent 46aec6e commit ef4a41c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/person/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def merge_persons(source, target, file=sys.stdout, verbose=False):
2525
changes = []
2626

2727
# write log
28-
syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_USER)
28+
syslog.openlog(str(os.path.basename(__file__)), syslog.LOG_PID, syslog.LOG_USER)
2929
syslog.syslog("Merging person records {} => {}".format(source.pk,target.pk))
3030

3131
# handle primary emails

ietf/stats/management/commands/fetch_meeting_attendance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright The IETF Trust 2017-2019, All Rights Reserved
12
# Copyright 2016 IETF Trust
23

34
import datetime
@@ -12,7 +13,7 @@
1213

1314
logtag = __name__.split('.')[-1]
1415
logname = "user.log"
15-
syslog.openlog(logtag, syslog.LOG_PID, syslog.LOG_USER)
16+
syslog.openlog(str(logtag), syslog.LOG_PID, syslog.LOG_USER)
1617

1718
class Command(BaseCommand):
1819
help = "Fetch meeting attendee figures from ietf.org/registration/attendees."

0 commit comments

Comments
 (0)