Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix no-cleanup option, disable analysis logs to stdout #99

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

pranavgaikwad
Copy link
Contributor

@pranavgaikwad pranavgaikwad commented Oct 23, 2023

Fixes #92
Fixes #55

  • Disables analysis logs to stdout
  • Passes down log level to analyzer command
  • Adds log files for all commands and prints logs there
  • Replaces deprecated ioutil.WriteFile with os.WriteFile

@pranavgaikwad pranavgaikwad requested review from eemcmullan and djzager and removed request for eemcmullan October 23, 2023 19:28
@@ -561,31 +569,35 @@ func (a *analyzeCommand) RunAnalysis(ctx context.Context, xmlOutputDir string) e

a.log.Info("running source code analysis", "log", analysisLogFilePath,
"input", a.input, "output", a.output, "args", strings.Join(args, " "), "volumes", volumes)
a.log.Info("generating analysis log in file", "file", analysisLogFilePath)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@eemcmullan eemcmullan merged commit f60dfb8 into konveyor:main Oct 23, 2023
2 checks passed
eemcmullan pushed a commit to eemcmullan/kantra that referenced this pull request Nov 17, 2023
Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Emily McMullan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Reduce logging verbosity Log level should be passed down to analyzer cli
3 participants