Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
host/cli: Fallback to collecting container logs from disk
Browse files Browse the repository at this point in the history
This ensures we get debug info even if flynn-host isn’t running.

Closes #1065

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
  • Loading branch information
titanous committed Apr 2, 2015
1 parent a9895ea commit e332b63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion host/cli/collect-debug-info.go
Expand Up @@ -66,7 +66,8 @@ func runCollectDebugInfo(args *docopt.Args) error {

log.Info("getting job logs")
if err := captureJobs(gist, args.Bool["--include-env"]); err != nil {
log.Error("error getting job logs", "err", err)
log.Error("error getting job logs, falling back to on-disk logs", "err", err)
debugCmds = append(debugCmds, []string{"bash", "-c", "tail -n +1 /tmp/flynn-host-logs/**/*.log"})
}

log.Info("getting system information")
Expand Down

0 comments on commit e332b63

Please sign in to comment.