Skip to content

Commit

Permalink
remove a few debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed Sep 4, 2018
1 parent 4af91ce commit 2bd1240
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,17 @@ func main() {
e.FirstRenderComplete(true)

for {
log.Println("waiting for changes")
if err := <-renderChan; err != nil {
log.Println("failure during watch:", err.Error())
break
}
log.Println("change detected; re-rendering")
log.Println("change detected")

if err := render(e, customRoot, exportRoot); err != nil {
log.Println("failed to render:", err.Error())
break
}

log.Println("reloading")
if err := reload(ariUsername, e.ARISecret, modules); err != nil {
log.Println("failed to reload asterisk modules:", err.Error())
break
Expand Down

0 comments on commit 2bd1240

Please sign in to comment.