refactor: rely on context.Context for log/slog and others (#1969)

* refactor: rely on context.Context for log/slog and others

* optimize

* refactor

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix watcher-skip

* better globals handling

* fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Kévin Dunglas
2025-11-17 16:32:23 +01:00
committed by GitHub
parent 40cb42aace
commit 8341cc98c6
23 changed files with 425 additions and 183 deletions

View File

@@ -802,7 +802,7 @@ static void frankenphp_register_variables(zval *track_vars_array) {
}
static void frankenphp_log_message(const char *message, int syslog_type_int) {
go_log((char *)message, syslog_type_int);
go_log(thread_index, (char *)message, syslog_type_int);
}
static char *frankenphp_getenv(const char *name, size_t name_len) {