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

Update expensify common with new logging methods and improve logging #4191

Merged
merged 17 commits into from
Aug 16, 2021

Conversation

iwiznia
Copy link
Contributor

@iwiznia iwiznia commented Jul 23, 2021

Details

Uses Expensify/expensify-common#397

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/171640

Tests

In addition to the QA tests, I also checked that the logs look good. Here's an example:

2021-07-29T16:09:30.089381+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] ACHTUNG debug mode is ON
2021-07-29T16:09:30.090338+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] PID ~~ 15168
2021-07-29T16:09:30.092978+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [dbug] [10.2.2.1->/api.php] Unexpected REQUEST 'forceNetworkRequest' => 'true'
2021-07-29T16:09:30.093682+00:00 expensidev2004 php-fpm: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 10.0.2.2:9000 (through xdebug.client_host/xdebug.client_port) :-(
2021-07-29T16:09:30.098618+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] Processing 'Log' for 'expensify.com' from '10.2.2.1'  ~~ command: 'Log' api_setCookie: 'false' logPacket: '[{"message":"[info] Making API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:08:52.900Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"hpgHHk"},"timestamp":"2021-07-29T16:08:53.091Z"},{"message":"[info] Previous log requestID","parameters":{"requestID":"4F8ECz"},"timestamp":"2021-07-29T16:08:53.143Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"uIx3Jp"},"timestamp":"2021-07-29T16:08:53.143Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/120"},"timestamp":"2021-07-29T16:08:53.157Z"},{"message":"[info] Making API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:08:53.374Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"6NoGdQ"},"timestamp":"2021-07-29T16:08:53.595Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/2"},"timestamp":"2021-07-29T16:09:10.826Z"},{"message":"[info] Making API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:11.061Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"vBbBhB"},"timestamp":"2021-07-29T16:09:11.461Z"},{"message":"[info] Making API request","parameters":{"command":"Report_AddComment","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:12.510Z"},{"message":"[info] Making API request","parameters":{"command":"Report_UpdateLastRead","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:12.590Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_UpdateLastRead","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"v9M3JZ"},"timestamp":"2021-07-29T16:09:12.780Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_AddComment","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"O4jJ1T"},"timestamp":"2021-07-29T16:09:13.306Z"},{"message":"[info] [Report] Handled reportComment event sent by Pusher","parameters":{"reportID":2},"timestamp":"2021-07-29T16:09:13.610Z"},{"message":"[info] Making API request","parameters":{"command":"Report_EditComment","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:17.143Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_EditComment","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"O2ryT9"},"timestamp":"2021-07-29T16:09:17.357Z"},{"message":"[info] [Report] Handled reportCommentEdit event sent by Pusher","parameters":{"reportActionID":"218"},"timestamp":"2021-07-29T16:09:17.595Z"},{"message":"[info] Making API request","parameters":{"command":"Report_EditComment","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:20.829Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_EditComment","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"C0kc4V"},"timestamp":"2021-07-29T16:09:21.027Z"},{"message":"[info] [Report] Handled reportCommentEdit event sent by Pusher","parameters":{"reportActionID":"218"},"timestamp":"2021-07-29T16:09:21.244Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/118"},"timestamp":"2021-07-29T16:09:21.910Z"},{"message":"[info] Making API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:22.174Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"IIA8SY"},"timestamp":"2021-07-29T16:09:22.609Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/114"},"timestamp":"2021-07-29T16:09:23.559Z"},{"message":"[info] [PusherConnectionManager] Attempting to authorize Pusher","parameters":{"channelName":"private-report-reportID-114"},"timestamp":"2021-07-29T16:09:23.889Z"},{"message":"[info] Making API request","parameters":{"command":"Push_Authenticate","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:23.889Z"},{"message":"[info] Making API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:23.892Z"},{"message":"[info] Finished API request","parameters":{"command":"Push_Authenticate","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"teegJ1"},"timestamp":"2021-07-29T16:09:24.101Z"},{"message":"[info] [PusherConnectionManager] Pusher authenticated successfully","parameters":{"channelName":"private-report-reportID-114"},"timestamp":"2021-07-29T16:09:24.102Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"ib7M7i"},"timestamp":"2021-07-29T16:09:24.103Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/118"},"timestamp":"2021-07-29T16:09:24.368Z"},{"message":"[info] [PusherConnectionManager] Attempting to authorize Pusher","parameters":{"channelName":"private-report-reportID-118"},"timestamp":"2021-07-29T16:09:24.592Z"},{"message":"[info] Making API request","parameters":{"command":"Push_Authenticate","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:24.592Z"},{"message":"[info] Making API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:24.594Z"},{"message":"[info] Finished API request","parameters":{"command":"Push_Authenticate","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"d3JQM5"},"timestamp":"2021-07-29T16:09:25.084Z"},{"message":"[info] [PusherConnectionManager] Pusher authenticated successfully","parameters":{"channelName":"private-report-reportID-118"},"timestamp":"2021-07-29T16:09:25.084Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"jDwkc2"},"timestamp":"2021-07-29T16:09:25.106Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/118"},"timestamp":"2021-07-29T16:09:26.742Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/117"},"timestamp":"2021-07-29T16:09:27.719Z"},{"message":"[info] [PusherConnectionManager] Attempting to authorize Pusher","parameters":{"channelName":"private-report-reportID-117"},"timestamp":"2021-07-29T16:09:28.109Z"},{"message":"[info] Making API request","parameters":{"command":"Push_Authenticate","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:28.110Z"},{"message":"[info] Making API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false},"timestamp":"2021-07-29T16:09:28.112Z"},{"message":"[info] Finished API request","parameters":{"command":"Push_Authenticate","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"extHp6"},"timestamp":"2021-07-29T16:09:28.399Z"},{"message":"[info] [PusherConnectionManager] Pusher authenticated successfully","parameters":{"channelName":"private-report-reportID-117"},"timestamp":"2021-07-29T16:09:28.400Z"},{"message":"[info] Finished API request","parameters":{"command":"Report_GetHistory","type":"post","shouldUseSecure":false,"jsonCode":200,"requestID":"yQqxqD"},"timestamp":"2021-07-29T16:09:28.413Z"},{"message":"[info] Navigating to route","parameters":{"route":"r\/2"},"timestamp":"2021-07-29T16:09:29.342Z"},{"message":"[info] [PusherConnectionManager] Attempting to authorize Pusher","parameters":{"chan
2021-07-29T16:09:30.098759+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [dbug] _send( expensidev2004.web.api.command.Log:1|c )
2021-07-29T16:09:30.100618+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.100744+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'hpgHHk' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.101018+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Previous log requestID ~~ requestID: '4F8ECz' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.101203+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'uIx3Jp' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.101270+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/120' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.101461+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.101697+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: '6NoGdQ' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.101786+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/2' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.101986+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.102358+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'vBbBhB' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.102457+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_AddComment' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.102612+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_UpdateLastRead' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.103547+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_UpdateLastRead' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'v9M3JZ' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.103663+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_AddComment' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'O4jJ1T' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.103707+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [Report] Handled reportComment event sent by Pusher ~~ reportID: '2' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.103764+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_EditComment' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.103811+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_EditComment' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'O2ryT9' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.104103+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [Report] Handled reportCommentEdit event sent by Pusher ~~ reportActionID: '218' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.104267+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_EditComment' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.104768+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_EditComment' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'C0kc4V' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.105261+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [Report] Handled reportCommentEdit event sent by Pusher ~~ reportActionID: '218' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.105522+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/118' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.105820+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.106146+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'IIA8SY' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.106254+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/114' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.106332+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [PusherConnectionManager] Attempting to authorize Pusher ~~ channelName: 'private-report-reportID-114' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.107202+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.108987+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.109275+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'teegJ1' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.109359+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [PusherConnectionManager] Pusher authenticated successfully ~~ channelName: 'private-report-reportID-114' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.110392+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'ib7M7i' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.110976+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/118' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.111458+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [PusherConnectionManager] Attempting to authorize Pusher ~~ channelName: 'private-report-reportID-118' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.111808+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.112090+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.112337+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'd3JQM5' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.112485+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [PusherConnectionManager] Pusher authenticated successfully ~~ channelName: 'private-report-reportID-118' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.113729+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'jDwkc2' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.113832+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/118' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.113881+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/117' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.113985+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [PusherConnectionManager] Attempting to authorize Pusher ~~ channelName: 'private-report-reportID-117' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.116494+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.116874+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.117282+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'extHp6' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.117620+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [PusherConnectionManager] Pusher authenticated successfully ~~ channelName: 'private-report-reportID-117' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.117893+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'yQqxqD' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.118009+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Navigating to route ~~ route: 'r/2' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.118836+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] [PusherConnectionManager] Attempting to authorize Pusher ~~ channelName: 'private-report-reportID-2' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.119073+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.119155+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Making API request ~~ command: 'Report_GetHistory' type: 'post' shouldUseSecure: '' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.119196+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] [info] Finished API request ~~ command: 'Push_Authenticate' type: 'post' shouldUseSecure: '' jsonCode: '200' requestID: 'eDlWYw' userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.119704+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info]  ~~ userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'
2021-07-29T16:09:30.119826+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] StoreUtils - Clearing all the stores.
2021-07-29T16:09:30.119978+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] TransactionStore cache fully cleared
2021-07-29T16:09:30.120061+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] ReportStore cache cleared
2021-07-29T16:09:30.120245+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] NVPStore - clear cache
2021-07-29T16:09:30.120360+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] NVPStore - clear cache
2021-07-29T16:09:30.120484+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] SharedInNVPStore - clear cache
2021-07-29T16:09:30.120709+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] ReportDuplicatedTransactionsStore - Cache cleared
2021-07-29T16:09:30.120795+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [dbug] _send( expensidev2004.web.api.result.success.200:1|c )
2021-07-29T16:09:30.121767+00:00 expensidev2004 php-fpm: Xdebug: [Step Debug] Could not connect to debugging client. Tried: 10.0.2.2:9000 (through xdebug.client_host/xdebug.client_port) :-(
2021-07-29T16:09:30.122359+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] Profile ~~ {"total":34,"cmd":"Log","jsonCode":200,"output":{"size":57,"gzip":1,"ratio":154},"gzip":57,"PHP":{"total":34,"%":100,"boot":5,"proc":28,"pack":1,"mem":2}}
2021-07-29T16:09:30.122485+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [info] Timing: cmd= Log totalTime= 34 authTotalTime=  authRunTime= 0
2021-07-29T16:09:30.122557+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [dbug] _send( expensidev2004.web.api.Log:34|ms )
2021-07-29T16:09:30.122830+00:00 expensidev2004 php-fpm: 9hINk4 /api.php ionatan@expensify.com !ecash! ?api? [dbug] _send( global.web.api.Log:34|ms )

QA

Only on web:

  • Open the JS console in the network tab
  • Sign in to the app
  • Take several actions (change chats, send messages, etc) till you see a request like this one
    image
  • Take another action more, check no request like the above was made
  • Switch to another tab for a few seconds
  • Go back to the app and check a request like the above was made
  • Without taking any actions, switch to another tab for a few seconds
  • Go back to the app and check a request like the above was not made
  • (maybe we can skip this since it requires you to wait 10m without doing anything else, I tested this by changing the 10m to 30s in the code) Take some actions and wait in the app without leaving for 10m, you should see a request like the above made at around the 10m mark
  • Sign out, check a request like the above was logged

On desktop and apps:

  • Open the app, take several actions, background the app, ask someone in slack to check if the logs for the user you are testing and the platform you were testing. Give then the search term: blob:"Flushing logs as app is going inactive".
  • Take a few actions and signout of the app. Ask someone in slack to check if the logs for the user you are testing and the platform you were testing. Give then the search term: blob:"Flushing logs before signing out".

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

@iwiznia iwiznia self-assigned this Jul 23, 2021
@iwiznia iwiznia force-pushed the ionatan_improve_logs branch from fb3b2f4 to 2aa3b90 Compare July 23, 2021 15:40
@iwiznia iwiznia requested a review from marcaaron July 29, 2021 16:10
@iwiznia iwiznia changed the title Update expensify common with new logging methods and improve logging [HOLD] Update expensify common with new logging methods and improve logging Jul 29, 2021
@iwiznia iwiznia marked this pull request as ready for review July 29, 2021 16:11
@iwiznia iwiznia requested a review from a team as a code owner July 29, 2021 16:11
@MelvinBot MelvinBot requested review from nkuoch and removed request for a team July 29, 2021 16:11
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @iwiznia looks good and I'm excited to send fewer API requests.

I did have a few questions and suggestions on how to organize things better and resolve the circular dependencies.

src/App.js Outdated
Log.info('Flushing logs as app is going inactive', true, {}, true);
}
this.setState({appState: nextAppState});
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe we should do this somewhere else. There's no reason to have this logic in the main App component and we definitely don't need to store appState in this.state - setting state will trigger an entire re-render of the app which could be fine, but seems potentially undesirable.

Maybe it can go in libs/actions/App.js ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point. Will see where I can move it.

src/libs/API.js Outdated
@@ -471,7 +471,7 @@ function GetRequestCountryCode() {
*/
function Log(parameters) {
const commandName = 'Log';
requireParameters(['message', 'parameters', 'expensifyCashAppVersion'],
requireParameters(['logPacket'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened to expensifyCashAppVersion ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this should still be here, my bad

src/libs/HttpUtils.js Show resolved Hide resolved
src/libs/HttpUtils.js Show resolved Hide resolved
src/App.js Outdated

handleAppStateChange(nextAppState) {
if (nextAppState.match(/inactive|background/) && this.state.appState === 'active') {
Log.info('Flushing logs as app is going inactive', true, {}, true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we test this on an actual device to see if the API call succeeds?

Just curious because there might things that prevent this like the network logic setting itself to "offline" or something or just inability to make API calls when the app is no longer active.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not. Will do that test once I address the comments in the review

src/libs/Log.js Outdated Show resolved Hide resolved
src/libs/Log.js Outdated Show resolved Hide resolved
@@ -1,6 +1,7 @@
import _ from 'underscore';
import lodashGet from 'lodash/get';
import Onyx from 'react-native-onyx';
// eslint-disable-next-line import/no-cycle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed it.. which dependency is creating a cycle?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this did not work, I "fixed" this with the hack of info = Log.info;, removing it.

src/libs/HttpUtils.js Show resolved Hide resolved
src/libs/HttpUtils.js Show resolved Hide resolved
src/libs/Log.js Outdated Show resolved Hide resolved
src/libs/Log.js Outdated Show resolved Hide resolved
src/libs/HttpUtils.js Show resolved Hide resolved
};

window.Log = Log;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

marcaaron
marcaaron previously approved these changes Aug 6, 2021
@marcaaron
Copy link
Contributor

marcaaron commented Aug 6, 2021 via email

@iwiznia
Copy link
Contributor Author

iwiznia commented Aug 6, 2021

Nice, thanks! Monday (or sometime when I don't need to do alloacations) will fix conflicts, update all the other PRs and retest them all.

@iwiznia
Copy link
Contributor Author

iwiznia commented Aug 13, 2021

Updated and retested, please review. I will merge all related PRs once they are all ready.

@marcaaron marcaaron self-requested a review August 13, 2021 16:04
src/Expensify.js Outdated
registerStorageEventListener: (onStorageEvent) => {
listenToStorageEvents(onStorageEvent);
},
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heads up this logic was moved to another file which is why it's showing as an addition. Probably we don't want to call it in both places.

// Initialize the store when the app loads for the first time
Onyx.init({
keys: ONYXKEYS,
safeEvictionKeys: [ONYXKEYS.COLLECTION.REPORT_ACTIONS],

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh... that's why I had to re-add the imports 😄
Removing.

@@ -54,6 +55,7 @@ function goBack(shouldOpenDrawer = true) {
* @param {String} route
*/
function navigate(route = ROUTES.HOME) {
Log.info('Navigating to route', false, {route});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB. Nice addition of this log! It might be even better to add a logger when the navigation state changes. Which will also capture things like goBack() or openDrawer(). Probably can be done later as 90% of navigations use this method - but thought you might like to know this exists.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I would need to add the log in this event right (and remove the logging from here)?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I think the "currentURL" or "path" is probably the most valuable to have now and moving the log there should capture everything and not just when we explicit use of navigate()?

There's also some other information in the "state" besides the path that could be useful to log - but less sure about that - more info here if you are curious.

https://reactnavigation.org/docs/navigation-state/

@iwiznia
Copy link
Contributor Author

iwiznia commented Aug 16, 2021

Alright updated, retested and off hold, please merge if all looks good.

@iwiznia iwiznia changed the title [HOLD] Update expensify common with new logging methods and improve logging Update expensify common with new logging methods and improve logging Aug 16, 2021
@@ -2,6 +2,8 @@ import _ from 'underscore';
import CONFIG from '../CONFIG';
import CONST from '../CONST';

let info = () => {};
Copy link
Contributor

@nkuoch nkuoch Aug 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@marcaaron marcaaron self-requested a review August 16, 2021 23:47
@marcaaron marcaaron merged commit a3597a8 into main Aug 16, 2021
@marcaaron marcaaron deleted the ionatan_improve_logs branch August 16, 2021 23:57
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@marcaaron
Copy link
Contributor

Oh hmm actually I think the logging of the command is pretty noisy for a local console log. It would be good to be able to turn off these logs on dev. The same information can easily be gotten from Flipper or Network tab in Chrome Dev Tools.

info('Making API request', false, {
command,
type,
shouldUseSecure,
rvl: data.returnValueList,
});

@iwiznia
Copy link
Contributor Author

iwiznia commented Aug 17, 2021

I kind of liked seeing the logs 😄
Anyway, we can remove the console logging if it's noisy... but let's give it a try first?

@iwiznia
Copy link
Contributor Author

iwiznia commented Aug 17, 2021

Oh, also you can hide all those messages by removing the verbose logs
image

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @marcaaron in version: 1.0.85-10 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@marcaaron
Copy link
Contributor

Anyway, we can remove the console logging if it's noisy... but let's give it a try first?
Oh, also you can hide all those messages by removing the verbose logs

Removing verbose logs also removes 99% of the console.debug we have that are useful. This trick also only helps if we look at logs in Chrome. We can't really hide these logs from the metro bundler. It's just my opinion, but I think anyone who works on the native side would prefer not to see these logs in the metro bundler output by default with no clear way to turn them off.

2021-08-17_09-48-24

I'd rather make it opt-in via a .env variable. This way if you need to look into a networking issue and you are not interested in using Chrome Dev Tools or Flipper (lord only knows why) then you can opt-in.

@iwiznia
Copy link
Contributor Author

iwiznia commented Aug 17, 2021

Why would those want to be silenced? They are good information, no?
Anyway, I am fine adding some env variable if people find them annoying.

@marcaaron
Copy link
Contributor

We can get this information from Network tab in Chrome Dev Tools (web) or Flipper (native). Adding them to the console doesn't solve any problem where this information is hard to access. But I can think of a couple of reasons why we should not do it by default:

  1. People share these logs when they need help with issues - sometimes it's a screenshot - the extra noise makes it less likely that we'll quickly spot something that should not be there. We ask people to turn verbose logging on in these cases so we don't miss anything.
  2. People use console logs to quickly debug things on native. We don't really need the network requests spamming everything when we are just interested in whatever it is we want to log.

@iwiznia
Copy link
Contributor Author

iwiznia commented Aug 18, 2021

The logs will not only include network requests, but everything we log. I still think more data and context is better, but I guess that's preference, I'll add something up. I checked the env configuration, but not sure how it works exactly. Do I add it to the env file and it automatically will load in the Config import Config from 'react-native-config'?

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @roryabraham in version: 1.0.86-11 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

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

Successfully merging this pull request may close these issues.

4 participants