gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] 09/10: using logger in test launchers


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] 09/10: using logger in test launchers
Date: Wed, 12 Jul 2017 12:55:45 +0200

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

marcello pushed a commit to branch master
in repository bank.

commit 7293a1870c4d45a9a94a759cf51d45c7a4a334a8
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jul 12 10:02:46 2017 +0200

    using logger in test launchers
---
 run_tests.py     | 5 ++++-
 run_tests_err.py | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/run_tests.py b/run_tests.py
index 1fd4485..5b61934 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -4,10 +4,13 @@ from django.core.management import call_command
 from django.db.utils import OperationalError
 import django
 import sys
+import logging
 
 django.setup()
+logger = logging.getLogger(__name__)
+
 try:
     call_command("test", "talerbank.app.tests")
 except OperationalError:
-    print("Catching DB hard error, skipping the test")
+    logger.error("Catching DB hard error, skipping the test")
     sys.exit(0)
diff --git a/run_tests_err.py b/run_tests_err.py
index c01d03f..f6d44c6 100755
--- a/run_tests_err.py
+++ b/run_tests_err.py
@@ -4,10 +4,13 @@ from django.core.management import call_command
 from django.db.utils import OperationalError
 import django
 import sys
+import logging
 
 django.setup()
+logger = logging.getLogger(__name__)
+
 try:
     call_command("test", "talerbank.app.tests_err")
 except OperationalError:
-    print("Catching DB hard error, skipping the test")
+    logger.error("Catching DB hard error, skipping the test")
     sys.exit(0)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]