Even more tweaks to connection reply logging.

This commit is contained in:
default 2023-02-14 08:49:17 +01:00
parent e71c72f037
commit 1af96788f0

View file

@ -1187,8 +1187,9 @@ void process_queue_item(xs_dict *q_item)
payload = xs_str_cat(payload, "...");
}
payload = xs_replace_i(payload, "\n", "\\n");
payload = xs_replace_i(payload, "\r", "\\r");
/* strip ugly control characters */
payload = xs_replace_i(payload, "\n", "");
payload = xs_replace_i(payload, "\r", "");
if (*payload)
payload = xs_str_wrap_i(" [", payload, "]");