1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

update log

This commit is contained in:
Timothy 2014-05-16 22:36:32 +08:00
parent 5bdbc3ff5c
commit eda38cbbbd
2 changed files with 3 additions and 2 deletions

View File

@ -148,7 +148,7 @@ func update_ip(domain_id int64, sub_domain_id string, sub_domain_name string, ip
fmt.Println("Failed to update record to new IP!") fmt.Println("Failed to update record to new IP!")
fmt.Println(err.Error()) fmt.Println(err.Error())
log.Eror("Failed to update record to new IP!") log.Error("Failed to update record to new IP!")
log.Error(err.Error()) log.Error(err.Error())
return return
} }

View File

@ -11,11 +11,12 @@ import (
var Configuration Settings var Configuration Settings
func main() { func main() {
initLog()
fmt.Println("Starting...") fmt.Println("Starting...")
log.Info("Starting...") log.Info("Starting...")
Configuration = LoadSettings() Configuration = LoadSettings()
initLog()
loop := make(chan bool) loop := make(chan bool)
go dns_loop(loop) go dns_loop(loop)