-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work in production #34
Comments
it works :) you just need to mount the viewer See: https://github.com/discourse/discourse/blob/master/config/routes.rb#L18-L24 and https://github.com/discourse/discourse/blob/master/config/initializers/logster.rb Would you mind doing a PR for documentation after you get it going ? |
Thanks for your answer. That's what I've done : https://github.com/jbox-web/deploy-it/blob/master/config/routes.rb#L24. Maybe should I try with an other constraint? |
Keep in mind in prd we default to warning and up. Open a rails console and On Friday, August 14, 2015, Nicolas notifications@github.com wrote:
|
It works! Sorry for the noise. Very good gem 👍 By the way, can I use logster to monitor an other log file / logger? |
Sure, you can chain it to whatever, have a look at the test suite it should On Fri, Aug 14, 2015 at 11:57 PM, Nicolas notifications@github.com wrote:
|
The log level in |
@bitsapien Have you worked out why it is showing in development but not production? I'm having the same issue and can't seem to figure out why. |
@yhmiao It works fine for me now. Check your logs dump on production to check whether you are getting any logs at all. |
Hi, I used Logster back in 2017 and love it. Using it again and it's working in dev but not prod or staging. While trying to troubleshoot it, I noticed two things:
Started GET "/logs/messages.json?filter=0_1_2_3_4_5" for 172.71.159.45 at 2024-04-18 04:52:18 +0000
What am I doing wrong? Btw, the rails version is 4.2.9 (same app from 2017). I have this in Logster initializer: Logster.set_environments(%i[local development qa staging production]) Thanks in advance! |
I was also puzzled after seeing no events on production. Only errors/warnings came after a while. Then I discovered that Logster really does ignore info+debug calls: logster/lib/logster/rails/railtie.rb Line 16 in 2537525
It seems to be disabled for a reason, but if you want to see info logs in prod, too, then you can change it in an initializer:
But then you will get the whole beauty of the Rails default logger with useless junk like "rendered in 0.2ms" with each line unrelated to the request etc. There might be more work needed to combine those. |
Hi! Logster works in development but not on my production server.
The page is well displayed, Ajax call are made to refresh the view, but nothing appears...
Any idea?
The text was updated successfully, but these errors were encountered: