mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Log the alloc and state directory on Client Init()
This commit is contained in:
@@ -147,6 +147,8 @@ func (c *Client) init() error {
|
||||
if err := os.MkdirAll(c.config.StateDir, 0700); err != nil {
|
||||
return fmt.Errorf("failed creating state dir: %s", err)
|
||||
}
|
||||
|
||||
c.logger.Printf("[INFO] using state directory %v", c.config.StateDir)
|
||||
}
|
||||
|
||||
// Ensure the alloc dir exists if we have one
|
||||
@@ -163,6 +165,7 @@ func (c *Client) init() error {
|
||||
}
|
||||
c.config.AllocDir = p
|
||||
|
||||
c.logger.Printf("[INFO] using alloc directory %v", c.config.AllocDir)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user