Skip to content

Commit

Permalink
chore: improve log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer committed Aug 16, 2024
1 parent 2d7152f commit 8e8a846
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cliv2/cmd/cliv2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const (

func main() {
errorCode := MainWithErrorCode()
globalLogger.Printf("Exiting with %d", errorCode)
os.Exit(errorCode)
}

Expand Down Expand Up @@ -548,7 +549,7 @@ func MainWithErrorCode() int {
displayError(err, globalEngine.GetUserInterface(), globalConfiguration)

exitCode := cliv2.DeriveExitCode(err)
globalLogger.Printf("Exiting with %d (cause: %v)", exitCode, err)
globalLogger.Printf("Deriving Exit Code %d (cause: %v)", exitCode, err)

targetId, targetIdError := instrumentation.GetTargetId(globalConfiguration.GetString(configuration.INPUT_DIRECTORY), instrumentation.AutoDetectedTargetId, instrumentation.WithConfiguredRepository(globalConfiguration))
if targetIdError != nil {
Expand Down

0 comments on commit 8e8a846

Please sign in to comment.