AUTH-2067: Log commands correctly

This commit is contained in:
Michael Borkenstein
2019-09-18 14:11:12 -05:00
parent 2789d0cf36
commit 979e5be8ab
3 changed files with 50 additions and 33 deletions

View File

@@ -386,7 +386,7 @@ func StartServer(c *cli.Context, version string, shutdownC, graceShutdownC chan
return errors.Wrap(err, msg)
}
if err := os.Mkdir(sshLogFileDirectory, 0600); err != nil {
if err := os.MkdirAll(sshLogFileDirectory, 0600); err != nil {
msg := fmt.Sprintf("Cannot create SSH log file directory %s", sshLogFileDirectory)
logger.WithError(err).Errorf(msg)
return errors.Wrap(err, msg)