Commits

Andy Mikhailenko committed 5e8a343

Added proper logging to the utils. (2010-10-15).

  • Participants
  • Parent commits 1601557

Comments (0)

Files changed (1)

File orgtool/utils/dates.py

 import datetime
 from dateutil.rrule import *
 from lepl import *
+import logging
 
 
 __all__ = ['informal_rrule']
 
 
+logger = logging.getLogger(__name__)
+
+
 # The mappings are ordered because the parser must not match "week" before it
 # sees "weeks". Note that `Or` in *not* greedy and will stop at first match.
 FREQUENCIES = (
                 value = value[0]
             kwargs[name] = value
 
-    print u'rrule(**{0})'.format(kwargs)
+    logger.debug(u'rrule(**{0})'.format(kwargs))
 
     return rrule(**kwargs)