Add additional stderr debug logging to gql error handler.
1 files changed, 6 insertions(+), 1 deletions(-) M server/server.go
M server/server.go => server/server.go +6 -1
@@ 289,7 289,12 @@ func (s *Server) gqlEmailRecover(ctx context.Context, _origErr any) error { stack = stack[:i] _, file, line, _ := runtime.Caller(2) s.e.Logger.Print(origErr.Error()) s.e.Logger.Print(string(stack)) // Print debug info if s.Config.Debug { s.e.Logger.Print(string(stack)) fmt.Fprintf(os.Stderr, string(stack)) } if s.Config.Debug || !s.Config.EmailAdminErrors || s.Email == nil { return fmt.Errorf("internal system error")