[Mpuls-commits] r6021 - base/trunk/mpulsweb/model

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Mon Aug 13 14:08:17 CEST 2012


Author: bricks
Date: 2012-08-13 14:08:17 +0200 (Mon, 13 Aug 2012)
New Revision: 6021

Modified:
   base/trunk/mpulsweb/model/phase.py
Log:
Lower logging if datefiled of phase is not found

For mpuls_S there are phases without corresponding date fields. Therefore change
logging from warning level to info to avoid many many entries in the logfile.


Modified: base/trunk/mpulsweb/model/phase.py
===================================================================
--- base/trunk/mpulsweb/model/phase.py	2012-08-08 08:48:46 UTC (rev 6020)
+++ base/trunk/mpulsweb/model/phase.py	2012-08-13 12:08:17 UTC (rev 6021)
@@ -301,7 +301,7 @@
                 self.datefield = p.getName()
 
         if self.datefield is None and self.phase != '-1':
-            log.warning("Phase %s has no associated datefield", id)
+            log.info("Phase %s has no associated datefield", id)
 
     def getDescription(self):
         desc = []



More information about the Mpuls-commits mailing list