mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
fix clickhouse-test
This commit is contained in:
parent
6f4c742408
commit
7122ebab4d
@ -73,13 +73,7 @@ def stringhash(s):
|
|||||||
|
|
||||||
# First and last lines of the log
|
# First and last lines of the log
|
||||||
def trim_for_log(s):
|
def trim_for_log(s):
|
||||||
if not s:
|
return s
|
||||||
return s
|
|
||||||
lines = s.splitlines()
|
|
||||||
if len(lines) > 100:
|
|
||||||
return "\n".join(lines[:50] + ["#" * 100] + lines[-50:])
|
|
||||||
else:
|
|
||||||
return "\n".join(lines)
|
|
||||||
|
|
||||||
|
|
||||||
class HTTPError(Exception):
|
class HTTPError(Exception):
|
||||||
|
Loading…
Reference in New Issue
Block a user