Skip to content
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

Not working in staging and production #232

Open
nahankid opened this issue Apr 18, 2024 · 0 comments
Open

Not working in staging and production #232

nahankid opened this issue Apr 18, 2024 · 0 comments

Comments

@nahankid
Copy link

nahankid commented Apr 18, 2024

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:

  1. In the server logs I see that Logster is looking at different IPs. Is that normal?
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
Started GET "/logs/messages.json?filter=0_1_2_3_4_5" for 172.71.159.46 at 2024-04-18 04:52:30 +0000
Started GET "/logs/messages.json?filter=0_1_2_3_4_5" for 172.71.159.45 at 2024-04-18 04:52:36 +0000
Started GET "/logs/messages.json?filter=0_1_2_3_4_5" for 172.71.154.236 at 2024-04-18 04:53:15 +0000
Started GET "/logs/messages.json?filter=0_1_2_3_4_5" for 172.71.154.194 at 2024-04-18 04:53:54 +0000
Started GET "/logs/messages.json?filter=0_1_2_3_4_5" for 172.69.135.149 at 2024-04-18 04:54:33 +0000
Started GET "/logs/messages.json?filter=0_1_2_3_4_5" for 162.158.166.226 at 2024-04-18 04:55:12 +0000
  1. In dev, redis has many "logster-env-*" keys but none in staging.

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])
Logster.store = Logster::RedisStore.new

What am I doing wrong?

Thanks in advance!

Originally posted by @nahankid in #34 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant