-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implement (optional) logging for all users #4828
Comments
Change of plans. Uploading directly to S3 turned out to be too much trouble. Let's just stick with getting RNBGL to email logs. Here's the revised to do list:
I suggest that this section/screen be accessed from the 'Edit Profile' screen. It can be a separate section that appears near the bottom of the existing 'Edit Profile' form or there can be a new link ('Debug options') to leads to the new screen. I suggest keeping this new debug section/screen separate from the existing one because the existing one isn't really suitable for public use. Well ... unless we modify the existing one extensively. Open for discussion.
There is a graphql user field
When this button is pressed, invoke |
Do you want to create mock-ups for this ticket? (UI is open for discussion.) If not, the developer will just proceed as they see best. |
If the user turns verbose logging on do we just assume that it's on in perpetuity until they turn it off? Or do we turn it off when they logout? Or is the setting limited by device+user? I think ideally it would be unique for device+user, but I'm jumping in a little late on the conversation so maybe that die is already cast. |
I think it should look something like this? |
It can be permanently on Verbose because RNBGL limits the log to the last 3 days (by default).
How about this ...
The implication here is that, once the loglevel has been set to Verbose, the only way to set it to Off is to
This is not ideal but is a pragmatic tradeoff.
It's complicated. The server side logging is per-user. The client side logging is per-device. But I'd like to make it just one slider/control that combines the two loggings instead of have two controls (one each for server side and client side). So it's sort-of per-device+user but the abstraction is leaky in some corner cases ... and I'm hoping we don't have to care about those corner cases. Alternatively, I'm open to ideas (... such as making it two sliders/controls). |
I guess if this is persisted on the backend then the setting will survive uninstall/reinstall. |
The
|
QA Notes: The 'Email Log' button has been moved to the new Debug Options screen. The destination email address is crashreports@hippware... |
Some location uploading issues have been occurring on Prod recently. It's unknown whether they are the same as recent (solved) issues on Staging or are completely new. In order to find out, we need to enable and retrieve the debug log from Prod apps.
At the same time, it would be useful for some external/beta users to send us debug logs. To facilitate this, we should implement a nicer, more stream-lined interface for retrieving debug logs.
Here's a list of suggested changes:
Implement a flag in the user object (server side and client side) called
debug
(orenable_debug
or something) which the app can set or clear.On the client side, in the 'Edit Profile' screen, add a checkbox/toggle/slider control which allows the user to turn debugging on or off. For now, the control can be called 'Enable debugging'.
debug
flag, enables the debug log, and exposes another button 'Send debug log'.Implement a facility (ie. S3 bucket) at the server side where the client can upload debug logs. The client needs to be able to specify the filename of the uploaded file.
Implement an API for the client to ask the server for a URL which it can upload debug logs to. This could be a time-limited S3 url or any other sort of URL.
The text was updated successfully, but these errors were encountered: