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 2ee8b22ddb
commit df8103dfe9

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
}