Skip to content

Commit cc538b9

Browse files
javacheFacebook Github Bot 4
authored andcommitted
Enable console.debug
Summary: Apparently what we're using for console.trace is not really the same as what Chrome does (we don't log a stacktrace). Add `console.debug` with the same functionality as `console.trace`, just so we don't crash between browser and local execution. Reviewed By: davidaurelio Differential Revision: D3235053 fb-gh-sync-id: 4bed17ac8aa4c8c100f15cf0aabbc25101c913c1 fbshipit-source-id: 4bed17ac8aa4c8c100f15cf0aabbc25101c913c1
1 parent 789978a commit cc538b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

react-packager/src/Resolver/polyfills/console.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ function setupConsole(global) {
471471
log: getNativeLogFunction(LOG_LEVELS.info),
472472
warn: getNativeLogFunction(LOG_LEVELS.warn),
473473
trace: getNativeLogFunction(LOG_LEVELS.trace),
474+
debug: getNativeLogFunction(LOG_LEVELS.trace),
474475
table: consoleTablePolyfill
475476
};
476477

0 commit comments

Comments
 (0)