mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
update log
This commit is contained in:
parent
5bdbc3ff5c
commit
eda38cbbbd
@ -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
|
||||||
}
|
}
|
||||||
|
3
godns.go
3
godns.go
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user