Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 4 additions & 17 deletions rate_limit/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,13 @@ def __init__(self, name, product_name='rate_limit'):
pass

def info(self, msg):
try:
self.__logger.info(msg)
except Exception:
pass
self.__logger.info(msg)

def warning(self, msg):
try:
self.__logger.warning(msg)
except Exception:
pass
self.__logger.warning(msg)

def error(self, msg):
try:
self.__logger.error(msg)
except Exception:
pass
self.__logger.error(msg)

def debug(self, msg):
try:
if CONF.debug or os.getenv("DEBUG", False):
self.__logger.debug(msg)
except Exception:
pass
self.__logger.debug(msg)