Project
cortex
Description
Level filter checks contains(level) on full log line text.
Error Message
Debug Logs
System Information
Screenshots
https://github.com/dragonwarrior0225/img/blob/main/84-4.PNG
Steps to Reproduce
- Run
cortex logs --level err.
- Observe lines with unrelated text containing
ERR may match.
Expected Behavior
Filter should parse structured level field (ERROR/WARN/INFO/...) exactly.
Actual Behavior
Substring matching over whole line yields noisy results.
Additional Context
Code Evidence:
Project
cortex
Description
Level filter checks
contains(level)on full log line text.Error Message
Debug Logs
System Information
Screenshots
https://github.com/dragonwarrior0225/img/blob/main/84-4.PNG
Steps to Reproduce
cortex logs --level err.ERRmay match.Expected Behavior
Filter should parse structured level field (
ERROR/WARN/INFO/...) exactly.Actual Behavior
Substring matching over whole line yields noisy results.
Additional Context
Code Evidence:
src/cortex-cli/src/logs_cmd.rsmain): https://github.com/CortexLM/cortex/blob/main/src/cortex-cli/src/logs_cmd.rsfilter(|line| line.to_uppercase().contains(&level_upper))inrun_show.