mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-19 22:01:00 +00:00
synchronize the log method
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3152 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
8d540f176e
commit
67f39e516c
1 changed files with 2 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ _lock = threading.Lock()
|
|||
|
||||
|
||||
class Logger (object):
|
||||
|
||||
def __init__ (self, config):
|
||||
self.logs = [config['logger']]
|
||||
self.logs.extend(config['fileoutput'])
|
||||
|
|
@ -42,6 +43,7 @@ class Logger (object):
|
|||
for logger in self.logs:
|
||||
logger.end_output()
|
||||
|
||||
@synchronized(_lock)
|
||||
def log_url (self, url_data):
|
||||
"""
|
||||
Send new url to all configured loggers.
|
||||
|
|
|
|||
Loading…
Reference in a new issue