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:
parent
8e177b51b1
commit
f5838c3ebd
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue