Skip to content

Commit

Permalink
Fix regular for orphaned objects error msg (#271)
Browse files Browse the repository at this point in the history
* Fix

* Fix test

---------

Co-authored-by: Nikita Unisikhin <nik.unisikhin.04@gmail.com>
  • Loading branch information
NikitaUnisikhin and Nikita Unisikhin authored Dec 19, 2024
1 parent 4cfc0ac commit 9c19614
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ch_tools/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"replacement": " ",
},
{
"pattern": r"(Code:\s\d+\.\sDB::Exception:\s).*(\s\([A-Z_]*\)\s\(version\s.*\s\(official build\)\)\s).*",
"replacement": r"\1...\2...",
"pattern": r"(Code:\s\d+\.\sDB::Exception:\s).*(\s\([A-Z_]*\)\s\(version\s.*\s\(official build\)\)).*",
"replacement": r"\1...\2",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion tests/features/monrun.feature
Original file line number Diff line number Diff line change
Expand Up @@ -522,5 +522,5 @@ Feature: ch-monitoring tool
"""
Then we get response
"""
2;Code: 27. DB::Exception: ... (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 24.8.5.115 (official build)) ...
2;Code: 27. DB::Exception: ... (CANNOT_PARSE_INPUT_ASSERTION_FAILED) (version 24.8.5.115 (official build))
"""

0 comments on commit 9c19614

Please sign in to comment.