fix hclog level

This commit is contained in:
Michael Schurter
2018-07-11 15:34:18 -07:00
parent 4107afdbf6
commit bfbc95e258

View File

@@ -1921,7 +1921,7 @@ func (c *Client) addAlloc(alloc *structs.Allocation, migrateToken string) error
//XXX FIXME
logger := hclog.New(&hclog.LoggerOptions{
Name: "nomad",
Level: hclog.LevelFromString("DEBUG"),
Level: hclog.LevelFromString(c.configCopy.LogLevel),
})
c.configLock.RLock()