add logging for host
This commit is contained in:
parent
854ae81ddb
commit
6ad3c63866
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
|
@ -337,6 +337,8 @@ type HostConfig struct {
|
|||
ID string `xml:"id"`
|
||||
Hostname string `xml:"hostname"`
|
||||
|
||||
Log LogConfig `xml:"log"`
|
||||
|
||||
Heartbeat int `xml:"heartbeat"`
|
||||
|
||||
Options []struct {
|
||||
|
|
@ -522,6 +524,9 @@ func hostMain() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
// setup logging
|
||||
setupLogging(config.Log)
|
||||
|
||||
// daemonize if needed
|
||||
if daemonize {
|
||||
becomeDaemon()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue