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

disable strace debug logging in worker, add feature flag to enable separate logging in analysis image #932

Merged
merged 7 commits into from
Oct 23, 2023

Conversation

maxfisher-g
Copy link
Contributor

@maxfisher-g maxfisher-g commented Oct 18, 2023

Update: reworked PR to disable strace debug logging by default, but add StraceDebugLogging feature flag for the analysis image, which saves the debug logs to a separate file in the analysis container. This allows saving and inspecting specifically the strace parsing logs, which may be useful for strace development in the future.

The logging calls with loglevel Warn (reporting parsing errors) are now logged to the default logger, which means they are still available in the main logs as before, in both the worker and analysis images.

Fixes #798.

Original: Fixes #798 via supressing debug output of strace logs rather than redirecting it, since there is currently no clear need to redirect.

If there is a need to save the debug output, we can open another issue.

internal/featureflags/features.go Outdated Show resolved Hide resolved
internal/worker/rundynamic.go Outdated Show resolved Hide resolved
@maxfisher-g maxfisher-g force-pushed the feature_disable_strace_debug_logging branch from 70e0d78 to 56e5a2f Compare October 19, 2023 06:16
Base automatically changed from execute_phase to main October 20, 2023 01:34
@maxfisher-g maxfisher-g force-pushed the feature_disable_strace_debug_logging branch from 56e5a2f to d32e9fc Compare October 20, 2023 01:37
… if StraceDebugLogging feature is enabled

Signed-off-by: Max Fisher <[email protected]>
@maxfisher-g maxfisher-g changed the title add feature flag to disable debug logging during strace parsing disable strace debug logging in worker, add feature flag to enable separate logging in analysis image Oct 20, 2023
cmd/analyze/main.go Outdated Show resolved Hide resolved
internal/worker/rundynamic.go Outdated Show resolved Hide resolved
Signed-off-by: Max Fisher <[email protected]>
internal/worker/rundynamic.go Outdated Show resolved Hide resolved
@maxfisher-g maxfisher-g merged commit 2cacbf0 into main Oct 23, 2023
11 checks passed
@maxfisher-g maxfisher-g deleted the feature_disable_strace_debug_logging branch October 23, 2023 05:26
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.

Log strace raw data to a separate file instead of stdout
2 participants