@@ -698,7 +698,9 @@ def test_logging_init_exporter_without_handler_setup(self):
698698 def test_logging_init_disable_default (self , logging_mock , tracing_mock ):
699699 _initialize_components (auto_instrumentation_version = "auto-version" )
700700 self .assertEqual (tracing_mock .call_count , 1 )
701- logging_mock .assert_called_once_with (mock .ANY , mock .ANY , False )
701+ logging_mock .assert_called_once_with (
702+ mock .ANY , mock .ANY , False , "%(levelname)s:%(name)s:%(message)s"
703+ )
702704
703705 @patch .dict (
704706 environ ,
@@ -712,7 +714,9 @@ def test_logging_init_disable_default(self, logging_mock, tracing_mock):
712714 def test_logging_init_enable_env (self , logging_mock , tracing_mock ):
713715 with self .assertLogs (level = WARNING ):
714716 _initialize_components (auto_instrumentation_version = "auto-version" )
715- logging_mock .assert_called_once_with (mock .ANY , mock .ANY , True )
717+ logging_mock .assert_called_once_with (
718+ mock .ANY , mock .ANY , True , "%(levelname)s:%(name)s:%(message)s"
719+ )
716720 self .assertEqual (tracing_mock .call_count , 1 )
717721
718722 @patch .dict (
@@ -837,6 +841,7 @@ def test_initialize_components_kwargs(
837841 "TEST_LOG_EXPORTERS_DICT" ,
838842 "TEST_RESOURCE" ,
839843 True ,
844+ "%(levelname)s:%(name)s:%(message)s" ,
840845 )
841846
842847
0 commit comments