Skip to content

Commit

Permalink
Merge pull request #2912 from freenas/NAS-100805-11.3
Browse files Browse the repository at this point in the history
NAS-100805 / 11.3 / Disable locking for SysLogHandler since its thread-safe anyway (by themylogin)
  • Loading branch information
themylogin committed Apr 18, 2019
2 parents aaf17b8 + cf031a4 commit c307905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui/freeadmin/handlers.py
Expand Up @@ -50,6 +50,7 @@ class SysLogHandler(logging.Handler):
def __init__(self, facility=syslog.LOG_USER):
self.facility = facility
super(SysLogHandler, self).__init__()
self.lock = None

def emit(self, record):
syslog.openlog(facility=self.facility)
Expand Down

0 comments on commit c307905

Please sign in to comment.