Improvements #11897
closedHide logs of HTTP replies
100%
Description
Dears,
I'm running a Wt 4.5.0 server with a webpage which refreshes every 50 ms, on a Linux box with limited resources.
My problem is that the Wt server logs the HTTP replies, and fills up my syslog.
I tried all log-config options I could find and think of, with no success.
The logs seem to be coming from the method "void Reply::logReply(Wt::WLogger& logger)", which is called in "Connection::handleWriteResponse".
I haven't tried more recent versions of Wt, but looking at the code it seems that the issue would still be present.
May I suggest that the replies be logged with level "info", so that they are suppressed by the log-config option "-info"?
Thanks,
Jerome
Updated by Matthias Van Ceulebroeck over 1 year ago
- Status changed from New to InProgress
- Assignee set to Matthias Van Ceulebroeck
- Target version set to 4.10.2
Hello Jerome,
this indeed wrong, it shouldn't be logged regardless of configuration. In my opinion this should be part of the wthttp
log. I agree "info" is an appropriate level for it.