diff --git a/openerp/netsvc.py b/openerp/netsvc.py
index 68375d1953ccea209d078376665b8c8fa6565877..bfdf7d39352d437ca2af87740b218b407e96fe41 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)