Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Also fixed whitespace issue.

Features: control

Required-githooks: true

Signed-off-by: Kris Jacque <[email protected]>
  • Loading branch information
kjacque committed Dec 13, 2023
1 parent 9b278b3 commit 1d44b95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/control/cmd/daos_agent/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ transport_config:
expErr error
}{
"empty path": {
expErr: errors.New("no path"),
expErr: errors.New("no config path"),
},
"bad path": {
path: "/not/real/path",
Expand Down
5 changes: 2 additions & 3 deletions src/control/common/cmdutil/logging.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// (C) Copyright 2021-2022 Intel Corporation.
// (C) Copyright 2021-2023 Intel Corporation.
//
// SPDX-License-Identifier: BSD-2-Clause-Patent
//
Expand Down Expand Up @@ -89,8 +89,7 @@ func ConfigureLogger(logIn logging.Logger, cfg LogConfig) error {
return errors.Wrap(err, "create log file")
}

log.Infof("%s logging to file %s",
os.Args[0], cfg.LogFile)
log.Infof("%s logging to file %s", os.Args[0], cfg.LogFile)

// Create an additional set of loggers which append everything
// to the specified file.
Expand Down

0 comments on commit 1d44b95

Please sign in to comment.