Print the time to xend-debug.log, when starting or restarting Xend.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-10-25 15:01:51 +01:00
1 parent a0b780220a
commit 9d8bfdc56a
1 file changed
+3
@@ -9,6 +9,7 @@ import os
import signal
import sys
import threading
import time
import linecache
import pwd
import re
@@ -112,6 +113,8 @@ class Daemon:
os.open('/dev/null', os.O_RDWR)
os.dup(0)
os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND)
print >>sys.stderr, ("Xend started at %s." %
time.asctime(time.localtime()))
def start(self, trace=0):
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.