Skip to content

Commit

Permalink
Remove unnecessary newlines from log messages
Browse files Browse the repository at this point in the history
Newlines are already added to those log files and there is no need to
add another one.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
  • Loading branch information
saschagrunert committed Sep 10, 2020
1 parent 8b9e5c8 commit c732545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/gcp/build/build.go
Expand Up @@ -78,7 +78,7 @@ func PrepareBuilds(o *Options) error {
o.BuildDir = o.ConfigDir
}

logrus.Infof("Build directory: %s\n", o.BuildDir)
logrus.Infof("Build directory: %s", o.BuildDir)

// Canonicalize the config directory to be an absolute path.
// As we're about to cd into the build directory, we need a consistent way to reference the config files
Expand All @@ -96,9 +96,9 @@ func PrepareBuilds(o *Options) error {
return errors.Wrapf(configDirErr, "could not validate config directory")
}

logrus.Infof("Config directory: %s\n", o.ConfigDir)
logrus.Infof("Config directory: %s", o.ConfigDir)

logrus.Infof("Changing to build directory: %s\n", o.BuildDir)
logrus.Infof("Changing to build directory: %s", o.BuildDir)
if err := os.Chdir(o.BuildDir); err != nil {
return errors.Wrapf(err, "failed to chdir to build directory (%s)", o.BuildDir)
}
Expand Down

0 comments on commit c732545

Please sign in to comment.