Missing FlareApp Reports with Nginx Unit Web Requests #36
Unanswered
dennyweiss
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that my logs and exception messages weren't being reported to FlareApp during web requests, although scheduled and queued jobs were unaffected.
After some investigation, I discovered that register_shutdown_function() doesn't execute when using Nginx Unit as the application server.
To work around this issue, I called
Flare::reset()
in theAppServiceProvider::boot()
method like this:This solution worked well for us so far. However, when using Flare as the logging channel, the context of the log calls (or the correct Stack trace) gets lost and is replaced with AppServiceProvider (where
Flare::reset()
was called).Does anyone know how I can preserve the log context so it displays correctly?
Beta Was this translation helpful? Give feedback.
All reactions