Fixed a bytes/str issue with the arguments to syslog.openlog()

- Legacy-Id: 16460
This commit is contained in:
Henrik Levkowetz 2019-07-16 13:18:37 +00:00
parent 46aec6eb85
commit ef4a41c14b
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,7 @@ def merge_persons(source, target, file=sys.stdout, verbose=False):
changes = []
# write log
syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_USER)
syslog.openlog(str(os.path.basename(__file__)), syslog.LOG_PID, syslog.LOG_USER)
syslog.syslog("Merging person records {} => {}".format(source.pk,target.pk))
# handle primary emails

View file

@ -1,3 +1,4 @@
# Copyright The IETF Trust 2017-2019, All Rights Reserved
# Copyright 2016 IETF Trust
import datetime
@ -12,7 +13,7 @@ from ietf.stats.utils import get_meeting_registration_data
logtag = __name__.split('.')[-1]
logname = "user.log"
syslog.openlog(logtag, syslog.LOG_PID, syslog.LOG_USER)
syslog.openlog(str(logtag), syslog.LOG_PID, syslog.LOG_USER)
class Command(BaseCommand):
help = "Fetch meeting attendee figures from ietf.org/registration/attendees."