mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +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
|
||||
def trim_for_log(s):
|
||||
if not s:
|
||||
return s
|
||||
lines = s.splitlines()
|
||||
if len(lines) > 100:
|
||||
return "\n".join(lines[:50] + ["#" * 100] + lines[-50:])
|
||||
else:
|
||||
return "\n".join(lines)
|
||||
return s
|
||||
|
||||
|
||||
class HTTPError(Exception):
|
||||
|
Loading…
Reference in New Issue
Block a user