Skip to content

Commit

Permalink
Merge pull request #9656 from rook/mergify/bp/release-1.8/pr-9654
Browse files Browse the repository at this point in the history
core: fix some nits  (backport #9654)
  • Loading branch information
mergify[bot] committed Jan 26, 2022
2 parents 9568850 + 50d2402 commit 46293b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/daemon/ceph/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func WriteCephConfig(context *clusterd.Context, clusterInfo *ClusterInfo) error
}
dst, err := ioutil.ReadFile(DefaultConfigFilePath())
if err == nil {
logger.Debugf("config file @ %s: %s", DefaultConfigFilePath(), dst)
logger.Debugf("config file @ %s:\n%s", DefaultConfigFilePath(), dst)
} else {
logger.Warningf("wrote and copied config file but failed to read it back from %s for logging. %v", DefaultConfigFilePath(), err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/daemon/ceph/client/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func getCephMonVersionString(context *clusterd.Context, clusterInfo *ClusterInfo
args := []string{"version"}
buf, err := NewCephCommand(context, clusterInfo, args).Run()
if err != nil {
return "", errors.Wrap(err, "failed to run 'ceph version'")
return "", errors.Wrapf(err, "failed to run 'ceph version'. %s", string(buf))
}
output := string(buf)
logger.Debug(output)
Expand Down

0 comments on commit 46293b5

Please sign in to comment.