diff --git a/openerp/netsvc.py b/openerp/netsvc.py index 68375d1953c..bfdf7d39352 100644 --- a/openerp/netsvc.py +++ b/openerp/netsvc.py @@ -160,7 +160,7 @@ def init_logger(): elif os.name == 'posix': handler = logging.handlers.WatchedFileHandler(logf) else: - handler = logging.handlers.FileHandler(logf) + handler = logging.FileHandler(logf) except Exception: sys.stderr.write("ERROR: couldn't create the logfile directory. Logging to the standard output.\n") handler = logging.StreamHandler(sys.stdout)