[SERVER-6358] Add field to command interface to only log slow commands by a logLevel threshold Created: 09/Jul/12  Updated: 11/Jul/12  Resolved: 10/Jul/12

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: admin, commands, performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Add a logLevel field to the command interface/base-class so that slow operations for these commands are only logged if the current logLevel is equal-to-or-above the log level defined by the command.

By default all commands should start with level 0.

Also fields to listCommands to include this new field, and a description.

A good example is the writebacklisten command which should only be logged at level 2 or so.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 10/Jul/12 ]

writebacklistener was fixed by adding an expected time option.
others can do that if needed also

Generated at Thu Feb 08 03:11:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.