X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Flogging.py;h=9b27aeb790f906eac7fbd6a1a666586954d68e89;hb=bf41f725ad73cb98ec7295ad1006e92dcccf380b;hp=bd81582a2bceaf64651edf05c6ec6b4934f1c8c9;hpb=e2ae71066cbb134753d7bfceb16e87d0b76dfd6e;p=dak.git diff --git a/daklib/logging.py b/daklib/logging.py index bd81582a..9b27aeb7 100644 --- a/daklib/logging.py +++ b/daklib/logging.py @@ -1,8 +1,7 @@ #!/usr/bin/env python # Logging functions -# Copyright (C) 2001, 2002 James Troup -# $Id: logging.py,v 1.4 2005-11-15 09:50:32 ajt Exp $ +# Copyright (C) 2001, 2002, 2006 James Troup # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -59,7 +58,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