ia64/xen-unstable

changeset 8014:a22a83ea77e5

imported patch trace-thread.patch
author emellor@leeni.uk.xensource.com
date Wed Nov 23 19:19:24 2005 +0000 (2005-11-23)
parents 07c608857972
children 55aae13c9e0a
files tools/python/xen/xend/server/SrvDaemon.py
line diff
     1.1 --- a/tools/python/xen/xend/server/SrvDaemon.py	Wed Nov 23 19:19:23 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/SrvDaemon.py	Wed Nov 23 19:19:24 2005 +0000
     1.3 @@ -8,7 +8,9 @@
     1.4  import os
     1.5  import signal
     1.6  import sys
     1.7 +import thread
     1.8  import threading
     1.9 +import time
    1.10  import linecache
    1.11  import pwd
    1.12  import re
    1.13 @@ -201,6 +203,8 @@ class Daemon:
    1.14                  pass
    1.15  
    1.16      def print_trace(self, string):
    1.17 +        self.tracefile.write(time.strftime("%Y-%m-%d %H:%M:%S "))
    1.18 +        self.tracefile.write("%10x" % thread.get_ident())
    1.19          for i in range(self.traceindent):
    1.20              ch = " "
    1.21              if (i % 5):