-
-
Notifications
You must be signed in to change notification settings - Fork 197
iOS: Unexpected CFNetwork logs on tns run ios
as of {N} 4.0.0
#3544
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
Comments
@mrothstein can you share what is the code invoked in Note: I've noticed that you are using |
From @cerireyhan on April 23, 2018 13:6 I have the same problem, terminal is full of network logs after 'tns run ios' on real device, simulator works fine though. CLI: 4.0.0
|
I've updated my The code that's being invoked in those logs is specific to our application. I'll try to build a test application with the right modules to see if the logs remain. |
@Fatme the issue is reproducible on my side on this project with the login HTTP requests. When the HTTP request is invalid it prints a lot of logs that should be filtered. |
Revisiting and updating an older app to 4.1.0, and I hit this same problem. Definitely makes it hard to debug since these network logs spit TONS of junk in to the console. Is there a workaround to squash these log messages? Or will it be patched in 4.2? |
Any progress or workaround to solve this problem? |
FWIW...as a "dirty" hack around the issue, you can just pipe the output of the Example: Will only output messages that were explicitly console logged. Hope that helps. |
I suspect I have the same issue on my project, yet when I tried with a clean new project, the logs stopped. Looking at both projects mentioned above, the only thing in common in between them and my project, plugin wise, is Unfortunately, I don't have time to test now 😞. I'll post here the results if I have the time to test it before anyone else has a chance. |
@EddyVerbruggen Hey Eddy. Any thoughts on this being related to the Firebase plug-in? |
I haven't seen those, but always willing to look at a bare-bones repo showing the issue. |
I can confirm that after installing and configuring Versions: |
Any updates / resolution on this? Seems like a lingering and really annoying issue affecting a lot of people |
I experienced this issue with NativeScript 5.0.3 after I added |
Update: this seem related to a native issue with verbose HTTP logging - possible solution for native projects is provide here We should investigate if editing the scheme to add the |
@toddanglin 's grep command works for quick filtering it out and another solution seems to be running it in debug mode using visual studio https://docs.nativescript.org/tooling/visual-studio-code-extension |
Unfortunately, this problem seems to persist in {N} 5.x with Firebase plugin 7.7. The It seems we've validated that the issue is reproducible. Any further thoughts on a fix? The challenge is that these verbose network/TCP logs make it virtually impossible to use console log output, especially if an app is making lots of network calls. |
Adding This is a significant issue since it makes development on iOS very painful by making it very hard to parse logs. |
I've run into this issue but I'm not using the Firebase plugin. |
Still present in TNS 5.4.0 without firebase plugin. Just make a https get request. |
This is annoying but less so than the terminal messages: |
From @mrothstein on April 20, 2018 17:7
Tell us about the problem
After upgrading to {N} 4.0.0, a ton of logs normally only visible using
tns device log
are showing up on the console during atns run ios
.Sample output from
tns run ios
:Sample output from
tns device log
:The device logs are consistent with output from running on {N} 3.4.1 (the CFNetwork logs themselves are not new). The new behavior is that they show up when running
tns run ios
. In the past, onlyconsole.log
output would show when runningtns run ios
, like so:There appears to be an issue with the logs that are "let through" to the console.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
Copied from original issue: NativeScript/NativeScript#5714
The text was updated successfully, but these errors were encountered: