Skip to content

Commit

Permalink
log: Change default to debug logging
Browse files Browse the repository at this point in the history
Since the installation is usually a one-time run, change the default
logging level to debug to capture details on any install issues.
This will help improve resolving customer issues when they arise.

Signed-off-by: Mark D Horn <[email protected]>
  • Loading branch information
mdhorn committed Jun 18, 2019
1 parent f39a658 commit cdc9160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion args/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (args *Args) setCommandLineArgs() (err error) {
// setting the results into the Args member variables.
func (args *Args) ParseArgs() (err error) {
// Set the default log level
args.LogLevel = log.LogLevelInfo
args.LogLevel = log.LogLevelDebug

err = args.setKernelArgs()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions args/args_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ func TestKernelAndCommandlineAllArgs(t *testing.T) {
if testArgs.PamSalt != "" {
t.Errorf("Command Line 'genpwd' is not defaulted to ''")
}
if testArgs.LogLevel != log.LogLevelInfo {
t.Errorf("Command Line 'log-level' is not defaulted to '%d'", log.LogLevelInfo)
if testArgs.LogLevel != log.LogLevelDebug {
t.Errorf("Command Line 'log-level' is not defaulted to '%d'", log.LogLevelDebug)
}
if testArgs.LogFile == "" {
t.Errorf("Command Line 'log-file' is NOT set to value")
Expand Down

0 comments on commit cdc9160

Please sign in to comment.