1
0
Fork 0
mirror of https://github.com/shouptech/tempgopher.git synced 2026-02-03 16:49:42 +00:00

Add config reload message

This commit is contained in:
Emma 2018-10-01 20:35:36 -06:00
parent 8e177b51b1
commit f5838c3ebd

View file

@ -155,6 +155,7 @@ func RunThermostat(path string, sc chan<- State, wg *sync.WaitGroup) {
go func() { go func() {
for { for {
<-hup <-hup
log.Println("Reloading configuration")
config, err = LoadConfig(path) config, err = LoadConfig(path)
if err != nil { if err != nil {
log.Panicln(err) log.Panicln(err)