Skip to content

Commit

Permalink
Don't use root logger
Browse files Browse the repository at this point in the history
hohav#48

commit fb362f2
Author: Davis <4967021+davisdude@users.noreply.github.com>
Date:   Mon Jul 3 11:01:18 2023 -0500

    Updated version number

commit 2588e08
Author: Davis <4967021+davisdude@users.noreply.github.com>
Date:   Fri Feb 24 22:16:16 2023 -0600

    Updated tests

commit e01ecad
Author: Davis <4967021+davisdude@users.noreply.github.com>
Date:   Fri Feb 24 22:11:29 2023 -0600

    Don't use root logger
  • Loading branch information
davisdude committed Jul 4, 2023
1 parent ca6e391 commit df1a53d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
python_requires='~=3.7',
tests_require=['mypy', 'types-termcolor'],
url="https://github.com/hohav/py-slippi",
version="1.6.2",
version="1.6.3",
)
2 changes: 1 addition & 1 deletion slippi/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ def record_factory(*args, **kwargs):
logging.basicConfig(
level=os.environ.get('LOG_LEVEL', 'WARNING').upper(),
format="%(levelname_colored)s: %(message)s")
log = logging.getLogger()
log = logging.getLogger(__name__)
2 changes: 1 addition & 1 deletion test/replays.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def test_v3_14_0(self):
def test_unknown_event(self):
with self.assertLogs(log, 'INFO') as log_context:
game = self._game('unknown_event')
self.assertEqual(log_context.output, ['INFO:root:ignoring unknown event type: 0xff'])
self.assertEqual(log_context.output, ['INFO:slippi.log:ignoring unknown event type: 0xff'])

def test_items(self):
game = self._game('items')
Expand Down

0 comments on commit df1a53d

Please # to comment.