mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-28 03:23:59 -06:00
http: make body output truncation more obvious
This commit is contained in:
parent
ea0eae3dde
commit
58e79bcde6
@ -241,15 +241,15 @@ public class HttpConsoleFormats {
|
||||
|
||||
if (Diag.data1000.includedIn(mask)) {
|
||||
if (toprint.length() > 1000) {
|
||||
toprint = toprint.substring(0, 1000) + "\n--truncated at 1000 characters--\n";
|
||||
toprint = toprint.substring(0, 1000) + "\n^^--truncated at 1000 characters--^^\n";
|
||||
}
|
||||
} else if (Diag.data100.includedIn(mask)) {
|
||||
if (toprint.length() > 100) {
|
||||
toprint = toprint.substring(0, 100) + "\n--truncated at 100 characters--\n";
|
||||
toprint = toprint.substring(0, 100) + "\n^^--truncated at 100 characters--^^\n";
|
||||
}
|
||||
} else if (Diag.data10.includedIn(mask)) {
|
||||
if (toprint.length() > 10) {
|
||||
toprint = toprint.substring(0, 10) + "\n--truncated at 10 characters--\n";
|
||||
toprint = toprint.substring(0, 10) + "\n^^--truncated at 10 characters--^^\n";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user