Author: ks156
Date: 2009-03-13 22:06:07 +0100 (Fri, 13 Mar 2009)
New Revision: 4069
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py
software_suite_v2/tuxware/tuxdroidserver/trunk/util/logger/SimpleLogger.py
Log:
* Fixed the log path (/var/log -> /var/log/tuxdroid)
Modified: software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py
2009-03-13 21:02:16 UTC (rev 4068)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/tuxhttpserver.py
2009-03-13 21:06:07 UTC (rev 4069)
@@ -92,7 +92,7 @@
else: # Linux
if __daemon:
from util.daemonizer import Daemonizer
- tuxDroidDaemon = Daemonizer('tuxhttpserver', '/var/log',
+ tuxDroidDaemon = Daemonizer('tuxhttpserver',
'/var/log/tuxdroid',
runServer, True)
tuxDroidDaemon.start()
else:
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/logger/SimpleLogger.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/util/logger/SimpleLogger.py
2009-03-13 21:02:16 UTC (rev 4068)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/util/logger/SimpleLogger.py
2009-03-13 21:06:07 UTC (rev 4069)
@@ -56,7 +56,9 @@
if os.name == 'nt':
self.__logPath = os.path.expanduser("~")
else:
- self.__logPath = "/var/log"
+ if not os.path.isdir("/var/log/tuxdroid"):
+ os.makedirs("/var/log/tuxdroid", mode=0755)
+ self.__logPath = "/var/log/tuxdroid/"
else:
self.__logPath = logPath
@@ -175,4 +177,4 @@
"""
if self.__level > LOG_LEVEL_DEBUG:
return
- self.__putLog("Debug", message)
\ No newline at end of file
+ self.__putLog("Debug", message)
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn