Commit 96cd1170 authored by Valentin Reis's avatar Valentin Reis

[fix] taking care of the rogue .argo_nodeos_config_error_message file.

parent 52cb3da3
Pipeline #4640 passed with stage
in 26 seconds
......@@ -80,7 +80,7 @@ cleanLeftovers :: FilePath -> FilePath -> FilePath ->
FilePath -> FilePath -> FilePath -> Shell ()
cleanLeftovers daemon_out daemon_err cmd_out cmd_err time_file nrm_log = do
printInfo "Cleaning leftovers..\n"
mapM_ cleanLog [daemon_out, daemon_err, cmd_out, cmd_err, time_file, nrm_log]
mapM_ cleanLog [daemon_out, daemon_err, cmd_out, cmd_err, time_file, nrm_log, ".argo_nodeos_config_exit_message"]
mapM_ cleanSocket ["/tmp/nrm-downstream-in", "/tmp/nrm-upstream-in"]
prepareDaemonShell :: Text -> FilePath -> FilePath -> FilePath -> Shell (Shell ())
......@@ -102,7 +102,7 @@ prepareDaemonShell dargs daemon_out daemon_err nrm_log = do
--Cleaning the config, running the daemon
shell (format (fp%" --clean_config=kill_content:true") confPath') empty >>= \case
ExitSuccess -> printInfo "Cleaned the argo config.\n"
ExitFailure n -> do printInfo "Contents of argo_nodeos_config_exit_message: \n"
ExitFailure n -> do printInfo "Contents of .argo_nodeos_config_exit_message: \n"
view $ cat ["./argo_nodeos_config_exit_message"]
die ("Clean config failed with exit code " <> repr n)
printInfo $ format ("Running the daemon, main log at "%fp%", stdout at "%fp%", stderr at "%fp%"\n") nrm_log daemon_out daemon_err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment