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

Commit

Permalink
[minor] better info when external conf not present
Browse files Browse the repository at this point in the history
  • Loading branch information
jvehent committed Sep 15, 2014
1 parent 2b9ecda commit c76239c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mig/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func main() {
case "agent":
err := configLoad(*config)
if err != nil {
fmt.Fprintf(os.Stderr, "[info] Using builtin conf. No external conf file found.\n")
fmt.Fprintf(os.Stderr, "[info] Using builtin conf. %v\n", err)
} else {
fmt.Fprintf(os.Stderr, "[info] Using external conf from %s\n", *config)
}
Expand All @@ -110,9 +110,9 @@ func main() {
*foreground = true
err := configLoad(*config)
if err != nil {
fmt.Fprintf(os.Stderr, "Not using external configuration: %s. Continuing startup.\n", err)
fmt.Fprintf(os.Stderr, "[info] Using builtin conf. %v\n", err)
} else {
fmt.Fprintf(os.Stderr, "Configuration loaded from %s\n", *config)
fmt.Fprintf(os.Stderr, "[info] Using external conf from %s\n", *config)
}
err = runAgentCheckin(*foreground, *upgrading, *debug)
if err != nil {
Expand Down

0 comments on commit c76239c

Please sign in to comment.