Skip to content

Commit

Permalink
safe logging (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomcej authored and mmatur committed Jun 13, 2019
1 parent 7f9d3ed commit b46c09d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func patchCommand() func(cmd *cobra.Command, args []string) {
log.SetLevel(log.DebugLevel)
}

log.Debugln("Starting i3o patch...")
log.Debugf("Using masterURL: %q", masterURL)
log.Debugf("Using kubeconfig: %q", kubeconfig)

clients, err := utils.BuildClients(masterURL, kubeconfig)
if err != nil {
log.Fatalf("Error building clients: %v", err)
Expand Down
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func runCommand() func(cmd *cobra.Command, args []string) {
// set up signals so we handle the first shutdown signal gracefully
stopCh := signals.SetupSignalHandler()

log.Debugln("Starting i3o controller...")
log.Debugf("Using masterURL: %q", masterURL)
log.Debugf("Using kubeconfig: %q", kubeconfig)

clients, err := utils.BuildClients(masterURL, kubeconfig)
if err != nil {
log.Fatalf("Error building clients: %v", err)
Expand Down

0 comments on commit b46c09d

Please sign in to comment.