Commits

Gregory Petukhov  committed 449a99b

Change logging

  • Participants
  • Parent commits 82590a1

Comments (0)

Files changed (1)

File mongodb_cache/__init__.py

 from django.utils.encoding import smart_unicode, smart_str
 
 logger = logging.getLogger('mongodb_cache')
-logger.addHandler(logging.StreamHandler())
-logger.setLevel(logging.INFO)
+#logger.addHandler(logging.StreamHandler())
+#logger.setLevel(logging.INFO)
 
 class InvalidCacheBackendError(ImproperlyConfigured):
     pass
                 return default
             else:
                 if self.debug:
-                    logger.error('Success cache hit for key: %s' % key)
+                    logger.info('Success cache hit for key: %s' % key)
                 value = pickle.loads(obj['value'].encode('utf-8'))
                 if isinstance(value, basestring):
                     return smart_unicode(value)