From: Adriana Draghici Date: Sun, 8 Nov 2009 18:43:16 +0000 (+0000) Subject: Tribler: changed the date format used in logging to DD-MM-YY hh:mm:ss X-Git-Tag: getopt_long~267 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=ac63c952d5c68a2f2921f470ab4130bdb13aa06e;p=cs-p2p-next.git Tribler: changed the date format used in logging to DD-MM-YY hh:mm:ss --- diff --git a/tribler-mod/scrips/modify.sh b/tribler-mod/scrips/modify.sh index 9fc19a2..40d35ee 100755 --- a/tribler-mod/scrips/modify.sh +++ b/tribler-mod/scrips/modify.sh @@ -1,2 +1,2 @@ -for i in $(find -name '*.py' -type f | grep -v '.svn'); do sed -i.bak 's/print >>sys.stderr,/print >>sys.stderr, strftime("%d %m %Y %H:%M:%S", localtime())," ",/g' $i; sed -i.bak '1i\from time import localtime, strftime\n' $i; done; +for i in $(find -name '*.py' -type f | grep -v '.svn'); do sed -i.bak 's/print >>sys.stderr,/print >>sys.stderr, strftime("%d-%m-%Y %H:%M:%S", localtime())," ",/g' $i; sed -i.bak '1i\from time import localtime, strftime\n' $i; done;