server/serverctl.py
branchstable
changeset 3786 11d98118f0eb
parent 3539 f3b14d052798
child 3835 a191b3b9e455
--- a/server/serverctl.py	Fri Oct 23 15:43:30 2009 +0200
+++ b/server/serverctl.py	Mon Oct 26 10:04:18 2009 +0100
@@ -465,6 +465,12 @@
         from cubicweb.server.server import RepositoryServer
         appid = pop_arg(args, msg='No instance specified !')
         config = ServerConfiguration.config_for(appid)
+        if sys.platform == 'win32':
+            if not self.config.debug:
+                from logging import getLogger
+                logger = getLogger('cubicweb.ctl')
+                logger.info('Forcing debug mode on win32 platform')
+                self.config.debug = True
         debug = self.config.debug
         # create the server
         server = RepositoryServer(config, debug)