Skip to content

Commit

Permalink
Removes rogue comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Nov 21, 2023
1 parent 7d50dd0 commit ddaefe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion internal/handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ func (h *Messaging) deleteExistingFactsBySource(apiClient graphql.Client, enviro
return err
}

//log.Printf("Previous facts deleted for '%s:%s' and source '%s'", project.Name, environment.Name, source)
slog.Info("Previous facts deleted",
"ProjectId", project.Id,
"ProjectName", project.Name,
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func main() {
disableS3Upload = getEnvBool("INSIGHTS_DISABLE_S3_UPLOAD", disableS3Upload)
problemsFromSBOM = getEnvBool("PROBLEMS_FROM_SBOM", problemsFromSBOM)
trivyServerEndpoint = getEnv("TRIVY_SERVER_ENDPOINT", trivyServerEndpoint)
enableDebug = getEnvBool("ENABLE_DEBUG", enableDebug)
// First we set up the default logger for the project

// If we enable debugging, we set the logging level to output debug for the default logger.
Expand All @@ -109,7 +110,7 @@ func main() {
debugLevel = slog.LevelDebug
}

slog.SetDefault(slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
slog.SetDefault(slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
Level: debugLevel,
})))

Expand Down

0 comments on commit ddaefe8

Please sign in to comment.