mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
67e2961733
commit
59b7cdb9fa
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):
|
||||
|
||||