Commit a276c8ad authored by lukas.burgey's avatar lukas.burgey

Improve the script log representation

parent 8a38fa26
Pipeline #131225 passed with stages
in 40 seconds
......@@ -168,8 +168,9 @@ func (sink *Sink) handleDep(dep deps.Dep) (output scripts.Output, err error) {
stderrBytes, _ = ioutil.ReadAll(stderr)
if (sink.Config.Debug.Scripts || sink.Config.Debug.DumpLog) && len(stderrBytes) > 0 {
dep.Log("Logs:\n%s", bytes.ReplaceAll(stderrBytes, []byte("\n"), []byte("\n> ")))
dep.Log("End of Logs")
scriptLog := bytes.Trim(stderrBytes, "\n")
scriptLog = bytes.ReplaceAll(scriptLog, []byte("\n"), []byte("\n> "))
dep.Log("Script log:\n> %s\n--- End of script log ---", scriptLog)
}
// execute the script with timeout
......
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