newrelic / newrelic-capacitor-plugin

Mobile instrumentation plugin for the Capacitor hybrid mobile platform by Ionic
Apache License 2.0
7 stars 10 forks source link

Unexpected output from log when newrelic is installed #77

Closed Toxiapo closed 4 months ago

Toxiapo commented 7 months ago

Description

I realized ever since I installed this package to my codebase, I see strange behavior to my console.log function, and it's showing empty logs in the console at app start.

Steps to Reproduce

Install @newrelic/newrelic-capacitor-plugin@1.3.5 in your capacitor app and start the app, it outputs empty logs []: [object Object]

Also, when I run the following code

 console.log("log:",  { book: { title:'book1' });

it doesn't output the detail of the log, instead, it prints []: []: log: '[]: [object Object]'

Expected Behavior

I expect the app runs without outputting any console logs that's not part of my debugging logs, and when calling console.log with array or object, it should display the full content.

Your Environment

ndesai-newrelic commented 7 months ago

@Toxiapo we will check it from our side.

Toxiapo commented 6 months ago

Hi @ndesai-newrelic, thank you for looking into this. Any updates on this bug? Would love to hear if there's been any progress.

ndesai-newrelic commented 5 months ago

@Toxiapo we will fix this issue for next release.

ndesai-newrelic commented 4 months ago

@Toxiapo i fixed it and please check it.

Toxiapo commented 4 months ago

@ndesai-newrelic Thank you! I will give this a test ASAP