Fixed a bytes/str issue with the arguments to syslog.openlog()
- Legacy-Id: 16460
This commit is contained in:
parent
46aec6eb85
commit
ef4a41c14b
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue