Skip to content

Commit

Permalink
Networking debugging (#345)
Browse files Browse the repository at this point in the history
* turn off debug flags by default

* improve timeout detection

* Update debug.js
  • Loading branch information
brunobar79 authored Feb 5, 2020
1 parent 4ab3d82 commit 42f97d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/config/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* could be useful during development.
*/

export const reactNativeDisableYellowBox = false;
export const reactNativeEnableLogbox = true;
export const showNetworkRequests = true;
export const showNetworkResponses = true;
export const reactNativeDisableYellowBox = true;
export const reactNativeEnableLogbox = false;
export const showNetworkRequests = false;
export const showNetworkResponses = false;
2 changes: 1 addition & 1 deletion src/debugging/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function monitorNetwork(
} ${url}`
);
emptyLine();
if (timeout) {
if (timeout && status > 400) {
console.log(` ⚠️ ⚠️ TIMEOUT! ⚠️ ⚠️ `);
}

Expand Down

0 comments on commit 42f97d1

Please sign in to comment.