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

Console debug issue #185

Merged
merged 5 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ class NewRelic {
const defaultLog = console.log;
const defaultWarn = console.warn;
const defaultError = console.error;
const defaultDebug = console.debug;
const self = this;

console.log = function () {
Expand All @@ -655,7 +656,7 @@ class NewRelic {

console.debug = function () {
self.sendConsole('debug', arguments);
defaultError.apply(console, arguments);
defaultDebug.apply(console, arguments);
}


Expand All @@ -675,7 +676,7 @@ class NewRelic {
}else {
this.logInfo("[CONSOLE][LOG]" +argsStr);
}

}

}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
},
"sdkVersions": {
"ios": {
"newrelic": "7.5.0"
"newrelic": "~>7.5.0"
},
"android": {
"newrelic": "7.5.+",
Expand Down
Loading