Log the alloc and state directory on Client Init()
This commit is contained in:
parent
998a817a29
commit
3cf6d014ef
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue