Skip to content

Commit edfee88

Browse files
committed
update basic multiprocessing logging test
#35 open multiprocessing log in context handler
1 parent fdcf226 commit edfee88

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

django_elastic_migrations/utils/django_elastic_migrations_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ def start_multiprocessing_logging():
2727
global mp_logging_enabled
2828

2929
if not mp_logging_enabled:
30-
install_mp_handler()
3130
mp_logging_enabled = True
31+
install_mp_handler()

tests/test_django_elastic_migrations_log.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
class TestDEMLog(TestCase):
77

88
def test_mp_logging_setup(self):
9-
self.assertFalse(django_elastic_migrations_log.mp_logging_enabled)
10-
119
django_elastic_migrations_log.start_multiprocessing_logging()
1210

1311
self.assertTrue(django_elastic_migrations_log.mp_logging_enabled)

0 commit comments

Comments
 (0)