mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-09 17:14:47 +00:00
Run black locally to format the code
This commit is contained in:
parent
61826cf21a
commit
483bbaf14d
@ -37,14 +37,14 @@ def validate_log_level(config, logs):
|
||||
key = root.findtext(".//names/level") or "level"
|
||||
|
||||
valid_level_values = {
|
||||
"Fatal",
|
||||
"Critical",
|
||||
"Error",
|
||||
"Warning",
|
||||
"Notice",
|
||||
"Information",
|
||||
"Debug",
|
||||
"Trace",
|
||||
"Fatal",
|
||||
"Critical",
|
||||
"Error",
|
||||
"Warning",
|
||||
"Notice",
|
||||
"Information",
|
||||
"Debug",
|
||||
"Trace",
|
||||
"Test",
|
||||
}
|
||||
|
||||
@ -102,9 +102,11 @@ def validate_logs(logs):
|
||||
def valiade_everything(config, node, config_type):
|
||||
node.query("SELECT 1")
|
||||
logs = node.grep_in_log("").split("\n")
|
||||
return validate_logs(logs) and validate_log_config_relation(
|
||||
config, logs, config_type
|
||||
) and validate_log_level(config, logs)
|
||||
return (
|
||||
validate_logs(logs)
|
||||
and validate_log_config_relation(config, logs, config_type)
|
||||
and validate_log_level(config, logs)
|
||||
)
|
||||
|
||||
|
||||
def test_structured_logging_json_format(start_cluster):
|
||||
|
Loading…
Reference in New Issue
Block a user