Skip to content

Commit 2760d6e

Browse files
committed
chore: log thread
1 parent cf7541f commit 2760d6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

threadworker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func go_frankenphp_finish_worker_request(threadIndex C.uintptr_t) {
223223
fc.closeContext()
224224
thread.handler.(*workerThread).workerContext = nil
225225

226-
fc.logger.LogAttrs(context.Background(), slog.LevelDebug, "request handling finished", slog.String("worker", fc.scriptFilename), slog.String("url", fc.request.RequestURI))
226+
fc.logger.LogAttrs(context.Background(), slog.LevelDebug, "request handling finished", slog.String("worker", fc.scriptFilename), slog.Int("thread", threadIndex), slog.String("url", fc.request.RequestURI))
227227
}
228228

229229
// when frankenphp_finish_request() is directly called from PHP
@@ -233,5 +233,5 @@ func go_frankenphp_finish_php_request(threadIndex C.uintptr_t) {
233233
fc := phpThreads[threadIndex].getRequestContext()
234234
fc.closeContext()
235235

236-
fc.logger.LogAttrs(context.Background(), slog.LevelDebug, "request handling finished", slog.String("url", fc.request.RequestURI))
236+
fc.logger.LogAttrs(context.Background(), slog.LevelDebug, "request handling finished", slog.Int("thread", threadIndex), slog.String("url", fc.request.RequestURI))
237237
}

0 commit comments

Comments
 (0)