diff --git a/offlineimap/ui/Noninteractive.py b/offlineimap/ui/Noninteractive.py index 64e01a7..19fa44b 100644 --- a/offlineimap/ui/Noninteractive.py +++ b/offlineimap/ui/Noninteractive.py @@ -45,7 +45,7 @@ class Syslog(UIBase): # create syslog handler ch = logging.handlers.SysLogHandler('/dev/log') # create formatter and add it to the handlers - self.formatter = logging.Formatter("%(message)s") + self.formatter = logging.Formatter("offlineimap[%(process)d]: %(message)s") ch.setFormatter(self.formatter) # add the handlers to the logger self.logger.addHandler(ch) diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py index d49d564..3c6859c 100644 --- a/offlineimap/ui/UIBase.py +++ b/offlineimap/ui/UIBase.py @@ -99,7 +99,7 @@ class UIBase: # create syslog handler ch = logging.handlers.SysLogHandler('/dev/log') # create formatter and add it to the handlers - self.formatter = logging.Formatter("%(message)s") + self.formatter = logging.Formatter("offlineimap[%(process)d]: %(message)s") ch.setFormatter(self.formatter) # add the handlers to the logger self.logger.addHandler(ch)