[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] imported patch trace-thread.patch



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID a22a83ea77e5fc2d513a0019dc464190be7fa058
# Parent  07c608857972d261a6e3bc5b5df7359749859aca
imported patch trace-thread.patch

diff -r 07c608857972 -r a22a83ea77e5 tools/python/xen/xend/server/SrvDaemon.py
--- a/tools/python/xen/xend/server/SrvDaemon.py Wed Nov 23 19:19:23 2005
+++ b/tools/python/xen/xend/server/SrvDaemon.py Wed Nov 23 19:19:24 2005
@@ -8,7 +8,9 @@
 import os
 import signal
 import sys
+import thread
 import threading
+import time
 import linecache
 import pwd
 import re
@@ -201,6 +203,8 @@
                 pass
 
     def print_trace(self, string):
+        self.tracefile.write(time.strftime("%Y-%m-%d %H:%M:%S "))
+        self.tracefile.write("%10x" % thread.get_ident())
         for i in range(self.traceindent):
             ch = " "
             if (i % 5):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.