Project

General

Profile

Actions

Improvements #11897

closed

Hide logs of HTTP replies

Added by Jerome Perret 8 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Target version:
Start date:
08/23/2023
Due date:
% Done:

100%

Estimated time:

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

Actions #1

Updated by Matthias Van Ceulebroeck 7 months 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.

Actions #2

Updated by Matthias Van Ceulebroeck 7 months ago

  • Status changed from InProgress to Review
  • Assignee deleted (Matthias Van Ceulebroeck)
Actions #3

Updated by Matthias Van Ceulebroeck 7 months ago

  • Assignee set to Marnik Roosen
Actions #4

Updated by Matthias Van Ceulebroeck 7 months ago

  • Status changed from Review to Resolved
  • Assignee changed from Marnik Roosen to Matthias Van Ceulebroeck
Actions #5

Updated by Matthias Van Ceulebroeck 7 months ago

  • Tracker changed from Support to Improvements
  • Status changed from Resolved to Implemented @Emweb
  • % Done changed from 0 to 100
Actions #6

Updated by Matthias Van Ceulebroeck 5 months ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF