From 574aee1d78d1633249cc359e8d91075762365074 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 18 Jun 2016 09:28:57 +0000 Subject: Logger --- wqflask/base/webqtlCaseData.py | 4 +++- wqflask/wqflask/do_search.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wqflask/base/webqtlCaseData.py b/wqflask/base/webqtlCaseData.py index 411b0d24..23f893fc 100644 --- a/wqflask/base/webqtlCaseData.py +++ b/wqflask/base/webqtlCaseData.py @@ -24,7 +24,9 @@ # # Last updated by GeneNetwork Core Team 2010/10/20 -print("Mr. Mojo Risin 2") +from utility.logger import getLogger +logger = getLogger(__name__) +logger.info("Mr. Mojo Risin 2") class webqtlCaseData(object): """one case data in one trait""" diff --git a/wqflask/wqflask/do_search.py b/wqflask/wqflask/do_search.py index 48212877..76bb15b2 100644 --- a/wqflask/wqflask/do_search.py +++ b/wqflask/wqflask/do_search.py @@ -14,7 +14,7 @@ from dbFunction import webqtlDatabaseFunction import logging from utility.logger import getLogger -logger = getLogger(__name__ , level = logging.INFO) +logger = getLogger(__name__) class DoSearch(object): """Parent class containing parameters/functions used for all searches""" -- cgit v1.2.3