Skip to content

Commit 113b164

Browse files
committed
add log verbosity to readme
Signed-off-by: Maya Barnea <[email protected]>
1 parent 5af59d5 commit 113b164

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ In addition, as we are using klog, the following parameters are available:
189189
- `skip_headers`: if true, avoid header prefixes in the log messages
190190
- `skip_log_headers`: if true, avoid headers when opening log files (no effect when -logtostderr=true)
191191
- `stderrthreshold`: logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true) (default 2)
192-
- `v`: number for the log level verbosity
192+
- `v`: number for the log level verbosity. Supported levels:
193+
- Warning (1) - warning messages
194+
- Info (2) - general application messages, e.g., loaded configuration content, which responses dataset was loaded, etc.
195+
- Debug (4) - debugging messages, e.g. /completions and /chat/completions request received, load/unload lora request processed, etc.
196+
- Trace (5) - highest verbosity, e.g. detailed messages on completions request handling and request queue processing, etc.
193197
- `vmodule`: comma-separated list of pattern=N settings for file-filtered logging
194198

195199
## Environment variables

pkg/llm-d-inference-sim/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ func (s *VllmSimulator) sendCompletionError(ctx *fasthttp.RequestCtx,
292292

293293
// HandleModels handles /v1/models request according the data stored in the simulator
294294
func (s *VllmSimulator) HandleModels(ctx *fasthttp.RequestCtx) {
295+
s.logger.V(logging.TRACE).Info("/models request received")
295296
modelsResp := s.createModelsResponse()
296297

297298
data, err := json.Marshal(modelsResp)

0 commit comments

Comments
 (0)