X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Flogging.py;h=11792c8baff4911965aad7907ba14676d7b64cc6;hb=e9628d0da14a4a046b04ac6c20675432168dcc4a;hp=bd81582a2bceaf64651edf05c6ec6b4934f1c8c9;hpb=4cba2a67e19776b8e294adb5e013b848531fdfb6;p=dak.git diff --git a/daklib/logging.py b/daklib/logging.py index bd81582a..11792c8b 100644 --- a/daklib/logging.py +++ b/daklib/logging.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # Logging functions -# Copyright (C) 2001, 2002 James Troup +# Copyright (C) 2001, 2002, 2006 James Troup # $Id: logging.py,v 1.4 2005-11-15 09:50:32 ajt Exp $ # This program is free software; you can redistribute it and/or modify @@ -59,7 +59,7 @@ class Logger: timestamp = time.strftime("%Y%m%d%H%M%S") details.insert(0, timestamp) # Force the contents of the list to be string.join-able - details = map(str, details) + details = [ str(i) for i in details ] # Write out the log in TSV self.logfile.write("|".join(details)+'\n') # Flush the output to enable tail-ing