-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Send all logs to server! #5624
Comments
Triggered auto assignment to @davidcardoza ( |
This should be pretty easy to switch out for now. But maybe we can also set up an ESLint rule to disallow |
Are you up for discussing this some more before opening a PR? |
A few questions I have...
|
I think no. If something is useful to log, log it to the server. Otherwise, don't log it at all!
Prettymuch, but maybe we can delete some
Not sure. What do you think?
Yes.
I just logged in on production, and it looks like all the |
I am thinking maybe all of these logs happening immediately will create a lot of network traffic so we should batch them and not send immediately. At least locally my dev environment tends to hang when there are a lot of calls to
I think it's because of this so we should not remove that Lines 37 to 40 in ef1eb11
|
Maybe some logs like this don't really make sense to log to the server since they only happen on dev Lines 98 to 99 in ef1eb11
|
my two cents here since I'm working on this issue which is part of the same thread that gave origin to this issue :)
Since the app is offline first I think we should have a mechanism to collect the logs when the app is offline and send them to the server when the app is back online. |
Interesting, I guess that problem does fall under "send all logs". The network layer is supposed to work like this:
I have no idea whether that works in practice or if the logs actually get sent in the order that they were created or if they retain timing information about when they happened. Maybe @iwiznia knows since he worked on some logging stuff recently. |
I assume logs are sent correctly when you reconnect, but I have not tested it. |
@roryabraham Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Sorry, no update on this and won't get to it today. TBH this feels like a weekly. |
PR is up and ready for review. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Something unexpected happens on staging or production when we're not explicitly looking for it.
Expected Result:
We should be able to find a paper-trail of logs to investigate the failure.
Actual Result:
Many logs are client-only and not logged to the server.
Workaround:
None (at least, not on mobile apps)
Platform:
Where is this issue occurring?
Version Number:
Reproducible in staging?:
Reproducible in production?:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: