Skip to content

Commit

Permalink
Modernize GateNLP#24
Browse files Browse the repository at this point in the history
  • Loading branch information
antonialoytorrens-ikaue committed Jan 9, 2024
1 parent 164eb3e commit a7c7a81
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions usp/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,6 @@ def __init__(self, name: str):
"""

self.__l = logging.getLogger(name)
if not self.__l.handlers:
formatter = logging.Formatter(
fmt='%(asctime)s %(levelname)s %(name)s [%(process)d/%(threadName)s]: %(message)s'
)

handler = logging.StreamHandler()
handler.setFormatter(formatter)
self.__l.addHandler(handler)

self.__l.setLevel(self.__LEVELS[self.__DEFAULT_LEVEL])

# Don't propagate handler to root logger
# (http://stackoverflow.com/a/21127526/200603)
self.__l.propagate = False

def error(self, message: str) -> None:
"""
Expand Down

0 comments on commit a7c7a81

Please sign in to comment.