Log the alloc and state directory on Client Init()

This commit is contained in:
Alex Dadgar 2015-09-25 10:04:08 -07:00
parent 998a817a29
commit 3cf6d014ef
1 changed files with 3 additions and 0 deletions

View File

@ -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
}