[diffoscope] 05/05: Only print milliseconds in log output, not microseconds.

Chris Lamb chris at chris-lamb.co.uk
Wed Dec 28 13:45:10 CET 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit e42bedfdf8f5c1e80678a16efe09f725aaf87dc9
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Dec 28 12:42:25 2016 +0000

    Only print milliseconds in log output, not microseconds.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/__init__.py b/diffoscope/__init__.py
index 15398c5..5a2fe3b 100644
--- a/diffoscope/__init__.py
+++ b/diffoscope/__init__.py
@@ -35,7 +35,7 @@ logger.setLevel(logging.WARNING)
 ch = logging.StreamHandler()
 ch.setLevel(logging.DEBUG)
 logger.addHandler(ch)
-formatter = logging.Formatter('%(created)f %(levelname).1s: %(message)s')
+formatter = logging.Formatter('%(created).3f %(levelname).1s: %(message)s')
 ch.setFormatter(formatter)
 
 OS_NAMES = {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list