Skip to content

Commit c5d58ba

Browse files
committed
Change the log order to be more useful
1 parent 6a2c75e commit c5d58ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hydra-cluster/src/CardanoNode.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ withCardanoNode ::
277277
IO a
278278
withCardanoNode tr stateDirectory args@CardanoNodeArgs{nodeSocket} networkId action = do
279279
traceWith tr $ MsgNodeCmdSpec (show $ cmdspec process)
280-
traceWith tr $ MsgNodeStarting{stateDirectory}
281280
withLogFile logFilePath $ \out -> do
282281
hSetBuffering out NoBuffering
283282
withCreateProcess process{std_out = UseHandle out, std_err = UseHandle out} $
@@ -299,12 +298,13 @@ withCardanoNode tr stateDirectory args@CardanoNodeArgs{nodeSocket} networkId act
299298

300299
waitForNode = do
301300
let nodeSocketPath = File socketPath
301+
traceWith tr $ MsgNodeStarting{stateDirectory}
302302
waitForSocket nodeSocketPath
303+
traceWith tr $ MsgSocketIsReady $ unFile nodeSocketPath
303304
-- we wait for synchronization since otherwise we will receive a query
304305
-- exception when trying to obtain pparams and the era is not the one we
305306
-- expect.
306307
_ <- waitForFullySynchronized tr networkId nodeSocketPath
307-
traceWith tr $ MsgSocketIsReady $ unFile nodeSocketPath
308308
action nodeSocketPath
309309

310310
cleanupSocketFile =

0 commit comments

Comments
 (0)