From 6e537f22f0b1b8f7d5f5ff4b5f3571c4a7dc7a6f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 2 Jul 2019 09:19:36 +0200 Subject: Fix exit status logging Fixes commit 158f55eb7fb24fa26727a008ad44964390171060. Logger works only if WARC is still open. --- crocoite/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crocoite') diff --git a/crocoite/cli.py b/crocoite/cli.py index 3294061..d89384d 100644 --- a/crocoite/cli.py +++ b/crocoite/cli.py @@ -124,8 +124,8 @@ def single (): finally: r = handler[0].stats logger.info ('stats', context='cli', uuid='24d92d16-770e-4088-b769-4020e127a7ff', **r) + logger.info ('exit', context='cli', uuid='9b1bd603-f7cd-4745-895a-5b894a5166f2', status=ret) - logger.info ('exit', context='cli', uuid='9b1bd603-f7cd-4745-895a-5b894a5166f2', status=ret) return ret def parsePolicy (recursive, url): -- cgit v1.2.3