mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
fixed the buffer to make it a more reasonable size
This commit is contained in:
parent
eab749a5f3
commit
1f9c392389
@ -89,7 +89,7 @@ fn newsched_log_str(msg: ~str) {
|
|||||||
use container::Container;
|
use container::Container;
|
||||||
|
|
||||||
// Truncate the string
|
// Truncate the string
|
||||||
let buf_bytes = 2048;
|
let buf_bytes = 256;
|
||||||
let msg = if msg.len() > buf_bytes {
|
let msg = if msg.len() > buf_bytes {
|
||||||
msg.slice(0, buf_bytes) + "[...]"
|
msg.slice(0, buf_bytes) + "[...]"
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user