From fb4db6c93849b9b64f589c9dd3d7e1f05ccb7e0e Mon Sep 17 00:00:00 2001
From: yingliu4203 <yingliu4203@gmail.com>
Date: Tue, 9 Sep 2014 19:28:33 -0700
Subject: [PATCH] [FIX] Packaging: Wndows: wrong handler used when logging to
 file

---
 openerp/netsvc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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