[Getan-commits] [PATCH] Code-quality: prepares template.py for logging

Wald Commits scm-commit at wald.intevation.org
Wed May 3 12:59:41 CEST 2017


# HG changeset patch
# User Bernhard Reiter <bernhard at intevation.de>
# Date 1493809177 -7200
# Node ID cc56bc1fd56b481eb49a4f9cbb4b22e00c0ff7b1
# Parent  0650c47e7a1c05288ed204b5d8d55932ef3ee588
Code-quality: prepares template.py for logging.

diff -r 0650c47e7a1c -r cc56bc1fd56b getan/template.py
--- a/getan/template.py	Wed May 03 11:51:39 2017 +0200
+++ b/getan/template.py	Wed May 03 12:59:37 2017 +0200
@@ -5,6 +5,7 @@
 # This is Free Software licensed under the terms of GPLv3 or later.
 # For details see LICENSE coming with the source of 'getan'.
 
+# import logging
 import os.path
 import sys
 
@@ -14,6 +15,9 @@
 
 from getan.backend import Backend, DEFAULT_DATABASE
 
+# logging.basicConfig(level='DEBUG')  # quick fix until getan-eval.py offers it
+# logger = logging.getLogger()
+
 
 def human_time(delta):
     days = delta.days


More information about the Getan-commits mailing list