Commit 54cfb450 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

[SOMA-4165][SOMA-3997] Melhorar mensagem de tentativa de reconexão.

parent 7d23b7e2
......@@ -99,7 +99,8 @@ local Client = safer.readonly {
}),
})
if not response then
self.logger:error(err)
err = err:gsub("^[^:]+:%d+: ", "")
self.logger:error("Unable to register to "..self.config.csbase_server..": "..err)
self.logger:info("Will retry...")
util_sleep(self.config.register_retry_s)
end
......
......@@ -39,7 +39,7 @@ function posix.execute_command(self, job, cmd_string, user_token)
if not ok then
local attr = lfs.attributes(sandbox_path)
if not (attr and attr.mode == "directory") then
return nil, "Failed creating job's sandbox "..sandbox_path
return nil, "Failed creating job's sandbox "..sandbox_path..": "..err
end
end
end
......
Supports Markdown
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