1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

cut off at 500 instead of 100

This commit is contained in:
mat 2022-09-09 22:58:14 -05:00
parent 2889514307
commit 3389f19e60

View file

@ -203,8 +203,8 @@ where
if log_enabled!(log::Level::Trace) {
let buf_string: String = {
if buf.len() > 100 {
let cut_off_buf = &buf[..100];
if buf.len() > 500 {
let cut_off_buf = &buf[..500];
format!("{cut_off_buf:?}...")
} else {
format!("{buf:?}")