Since the watcher is launched by cron, and we can have the situation of
two processes running at the same time (the lock will prevent problems),
we need to have the pid in the log so that it's clear which messages
come from which program.
Reviewed-by: imsnah
"""Configures the logging module.
"""
- formatter = logging.Formatter("%(asctime)s: %(message)s")
+ formatter = logging.Formatter("%(asctime)s %(module)s[%(process)d]:"
+ " %(message)s")
logfile_handler = logging.FileHandler(constants.LOG_WATCHER)
logfile_handler.setFormatter(formatter)