From 3f39ea3ec7b66451c36121b2437b7ebd8845ffea Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 4 Jun 2017 20:33:10 +0000 Subject: reproducible Debian: Set timestamps to second resolution (was millisecond by default). Signed-off-by: Holger Levsen --- bin/reproducible_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/reproducible_common.py') 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() -- cgit v1.2.3-54-g00ecf