Skip to content
Permalink
Browse files

Log failures rather than panic

  • Loading branch information...
paultag committed Apr 22, 2016
1 parent 92141c4 commit 162449323f9b687f10e83f388c569165854acbd9
Showing with 3 additions and 1 deletion.
  1. +3 −1 reload.go
@@ -16,6 +16,7 @@
package main

import (
"log"
"os"
"os/signal"
"syscall"
@@ -53,7 +54,8 @@ func Reloader(file string, target *Blobs) {
signal.Notify(c, syscall.SIGHUP)
for _ = range c {
if err := loadBlob(file, target); err != nil {
panic(err)
log.Printf("Error! Can not reload the JSON! - %s", err)
continue
}
}
}

0 comments on commit 1624493

Please sign in to comment.
You can’t perform that action at this time.