Troubleshooting¶
The compressed log is empty¶
LogStrip removes low-value lines. If a log only contains [INFO], [DEBUG], [TRACE], or [VERBOSE] entries, the compressed output can be empty.
Add at least one error or warning line to verify the pipeline:
The CLI exits with code 2¶
Exit code 2 is a usage error. Common causes:
- Unknown flag - run
logstrip --helpto see the supported options. - Unsupported
--aggressivenessvalue - use one oflow,medium,high,aggressive. --jsonwithout--output- JSON would collide with the compressed log on stdout.- No
INPUTargument andstdinis a terminal - either pass a file path or pipe a log.
The CLI exits with code 1¶
Exit code 1 is a runtime failure (missing file, permission error, stream error). The error message goes to stderr. Confirm the input path exists and that the user running the CLI can read it / write the output path.
The action cannot find the log file¶
Make sure the previous step writes the file in the workspace and that log-path matches the relative path:
The workflow stops before LogStrip runs¶
If the test step exits non-zero, GitHub Actions stops by default. Capture the failure and continue:
You can fail the job later after the AI analysis step.
Stack traces are too short¶
The current release hides internal node_modules/, node:internal, and system library frames. Application frames such as /src/app.ts:10:5 are preserved.
If a library frame is needed for a specific investigation, inspect the raw log artifact with short retention, or pipe through --aggressiveness low after planned aggressiveness tuning lands.
I want both the compressed log and the stats¶
Use --stats:
clean.log receives the compressed content; stderr shows the stats block. Or use --json for a machine-readable report on stdout.