Project

General

Profile

Actions

Improvements #11897

closed

Hide logs of HTTP replies

Added by Jerome Perret over 1 year ago. Updated about 1 year 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


Related issues 1 (0 open1 closed)

Related to Bug #11812: Implemented WLogSink but wthttp lib is still using the old logging method. Rejected07/07/2023

Actions
Actions #1

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

Actions #2

Updated by Matthias Van Ceulebroeck about 1 year ago

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

Updated by Matthias Van Ceulebroeck about 1 year ago

  • Assignee set to Marnik Roosen
Actions #4

Updated by Matthias Van Ceulebroeck about 1 year ago

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

Updated by Matthias Van Ceulebroeck about 1 year 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 about 1 year ago

  • Status changed from Implemented @Emweb to Closed
Actions #7

Updated by Matthias Van Ceulebroeck 7 months ago

  • Related to Bug #11812: Implemented WLogSink but wthttp lib is still using the old logging method. added
Actions

Also available in: Atom PDF