Skip to content

Commit

Permalink
Remove lib2to3 logging patch
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Feb 5, 2024
1 parent 190a426 commit fa9a61e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions indra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
logging.getLogger('boto3').setLevel(logging.CRITICAL)
logging.getLogger('botocore').setLevel(logging.CRITICAL)

# This is specifically to suppress lib2to3 logging from networkx
import lib2to3.pgen2.driver
class Lib2to3LoggingModuleShim(object):
def getLogger(self):
return logging.getLogger('lib2to3')
lib2to3.pgen2.driver.logging = Lib2to3LoggingModuleShim() # type: ignore
logging.getLogger('lib2to3').setLevel(logging.ERROR)

logger = logging.getLogger('indra')

from .config import get_config, has_config

0 comments on commit fa9a61e

Please sign in to comment.