Skip to content

Commit

Permalink
Log error from archive to dump.log file
Browse files Browse the repository at this point in the history
This allows us to understand what happened without concerning the user
with an arbitrary error message.
  • Loading branch information
rhcarvalho committed Sep 8, 2016
1 parent 5bc677d commit 92c881a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func main() {
fileOnlyLogger.Printf("Dumped system information to: %s", basePath)

if err := archive(basePath); err != nil {
fileOnlyLogger.Printf("Could not create data archive: %v", err)
log.Printf("Could not archive dump data, unarchived data in: %s", basePath)
return
}
Expand Down

0 comments on commit 92c881a

Please sign in to comment.