Skip to content

Commit 3c825bf

Browse files
Fix the regular expression for OPA bundle builder logs (#819)
1 parent f949739 commit 3c825bf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

crates/stackable-operator/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,15 @@ All notable changes to this project will be documented in this file.
2121
### Fixed
2222

2323
- Product image selection pull request version override now only applies to pull requests ([#812]).
24+
- OPA bundle builder logs without a log message are marked with the
25+
error "Message not found." instead of "Log event not parsable" ([#819]).
2426

2527
[#804]: https://github.com/stackabletech/operator-rs/pull/804
2628
[#811]: https://github.com/stackabletech/operator-rs/pull/811
2729
[#812]: https://github.com/stackabletech/operator-rs/pull/812
2830
[#817]: https://github.com/stackabletech/operator-rs/pull/817
2931
[#818]: https://github.com/stackabletech/operator-rs/pull/818
32+
[#819]: https://github.com/stackabletech/operator-rs/pull/819
3033

3134
## [0.69.3] - 2024-06-12
3235

crates/stackable-operator/src/product_logging/framework.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ transforms:
778778
.message = ""
779779
.errors = []
780780
781-
event, err = parse_regex(strip_whitespace(strip_ansi_escape_codes(raw_message)), r'(?P<timestamp>[0-9-:.TZ]+)[ ]+(?P<level>\w+)[ ]+(?P<logger>.+):[ ]+(?P<message>.*)')
781+
event, err = parse_regex(strip_whitespace(strip_ansi_escape_codes(raw_message)), r'(?P<timestamp>[0-9-:.TZ]+)[ ]+(?P<level>\w+)[ ]+(?P<logger>.+):[ ]*(?P<message>.*)')
782782
if err != null {{
783783
error = "Log event not parsable: " + err
784784
.errors = push(.errors, error)

0 commit comments

Comments
 (0)