summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.py
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2017-06-04 20:33:10 +0000
committerHolger Levsen <holger@layer-acht.org>2017-06-04 22:34:20 +0200
commit3f39ea3ec7b66451c36121b2437b7ebd8845ffea (patch)
tree94fc84ff1fffa5eaf1c5b496de428e6f10d68465 /bin/reproducible_common.py
parentf17b95848091da41019f6ab752304afcf6f80abe (diff)
downloadjenkins.debian.net-3f39ea3ec7b66451c36121b2437b7ebd8845ffea.tar.xz
reproducible Debian: Set timestamps to second resolution (was millisecond by default).
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_common.py')
-rwxr-xr-xbin/reproducible_common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 474c8a3c..7fd1e967 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -113,7 +113,7 @@ if args.quiet or QUIET:
log = logging.getLogger(__name__)
log.setLevel(log_level)
sh = logging.StreamHandler()
-sh.setFormatter(logging.Formatter('[%(asctime)s] %(levelname)s: %(message)s'))
+sh.setFormatter(logging.Formatter('[%(asctime)s] %(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S'))
log.addHandler(sh)
started_at = datetime.now()