File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
src/openjd/adaptor_runtime/_background
test/openjd/adaptor_runtime/unit/background Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ def init(
149149 )
150150 args .extend (["--bootstrap-log-file" , bootstrap_log_path ])
151151
152- _logger .debug (f"Running process with args: { args } " )
152+ _logger .info (f"Running process with args: { args } " )
153153 bootstrap_output_path = os .path .join (
154154 bootstrap_log_dir , f"adaptor-runtime-background-bootstrap-output-{ bootstrap_id } .log"
155155 )
Original file line number Diff line number Diff line change @@ -219,6 +219,34 @@ def test_initializes_backend_process(
219219 )
220220 mock_heartbeat .assert_called_once ()
221221
222+ def test_arguments_to_daemon_serve_are_logged_at_info_level (
223+ self ,
224+ mock_path_exists : MagicMock ,
225+ mock_Popen : MagicMock ,
226+ caplog : pytest .LogCaptureFixture ,
227+ ):
228+ # GIVEN
229+ caplog .set_level ("INFO" )
230+ mock_path_exists .return_value = False
231+ adaptor_module = ModuleType ("" )
232+ adaptor_module .__package__ = "package"
233+ conn_file_path = Path ("/path" )
234+ runner = FrontendRunner ()
235+
236+ # WHEN
237+ runner .init (
238+ adaptor_module = adaptor_module ,
239+ connection_file_path = conn_file_path ,
240+ )
241+
242+ # THEN
243+ assert any (
244+ "Running process with args" in captured_message
245+ for captured_message in caplog .messages
246+ )
247+ mock_path_exists .assert_called_once_with ()
248+ mock_Popen .assert_called_once ()
249+
222250 def test_raises_when_adaptor_module_not_package (self ):
223251 # GIVEN
224252 adaptor_module = ModuleType ("" )
You can’t perform that action at this time.
0 commit comments