Skip to content

CLI captures logs from Chrome and Cordova apps #2515

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

Closed
tsonevn opened this issue Feb 9, 2017 · 2 comments
Closed

CLI captures logs from Chrome and Cordova apps #2515

tsonevn opened this issue Feb 9, 2017 · 2 comments

Comments

@tsonevn
Copy link
Contributor

tsonevn commented Feb 9, 2017

In case, there is working Chrome or Cordova app on the device or emulator and build a NativeScript app with tns run android, the following message will be print in the console.

Message

"chromium: [INFO:CONSOLE(25)] "No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.", source: file:///android_asset/www/plugins/cordova-plugin-whitelist/whitelist.js (25)"
@tsonevn tsonevn added the bug label Feb 9, 2017
@petekanev
Copy link
Contributor

petekanev commented Feb 9, 2017

This seems to be a problem with the way we filter out log messages from the device Logcat. For whatever reason (a substring that matched the filter regex) unrelated messages are shown.

This will be addressed with changes to the logging service to only output logs of the running process.

https://github.com/telerik/mobile-cli-lib/blob/1ecec5d2cf5f242d2c87345d68022ecbcd35927c/mobile/android/android-log-filter.ts#L32

The current log filtering doesn't exclude logs from other processes and thus outputs logs from all of logcat with no regards to the app currently running on the device.

@dtopuzov dtopuzov changed the title chromium: [INFO:CONSOLE(25)] "No Content-Security-Policy meta tag found. message after tns run android CLI do not filter logs correctly (it also captures logs form Chrome and Cordova apps) May 9, 2017
@dtopuzov dtopuzov changed the title CLI do not filter logs correctly (it also captures logs form Chrome and Cordova apps) CLI captures logs form Chrome and Cordova apps May 9, 2017
@dtopuzov dtopuzov changed the title CLI captures logs form Chrome and Cordova apps CLI captures logs from Chrome and Cordova apps May 9, 2017
@pkoleva
Copy link
Contributor

pkoleva commented Jul 14, 2017

Related to #2818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants