Skip to content

Clean up terminal output with verbose mode #2006

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
burkeholland opened this issue Aug 18, 2016 · 4 comments
Closed

Clean up terminal output with verbose mode #2006

burkeholland opened this issue Aug 18, 2016 · 4 comments

Comments

@burkeholland
Copy link

Currently, the terminal outputs virtually everything from underlying build processes. This makes the terminal extremely cluttered, and it's hard to find log statements because there is so much noise.

For instance, currently when we run tns livesync ios --emualtor --watch, the terminal shells out the following text.

tns livesync ios --emulator --watch
Executing before-prepare hook from /Users/burkeholland/dev/burkeholland/nativescript-instagram/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 1.8.10
Project successfully prepared (ios)
Executing before-livesync hook from /Users/burkeholland/dev/burkeholland/nativescript-instagram/hooks/before-livesync/nativescript-angular-sync .js
Transferring project files...
Successfully transferred all files.
Applying changes...
Successfully synced application org.nativescript.nativescriptinstagram on device 70547B05-8B62-487D-A39C-5D7522A41B3A.
Executing before-watch hook from /Users/burkeholland/dev/burkeholland/nativescript-instagram/hooks/before-watch/nativescript-dev-typescript.js
Found peer TypeScript 1.8.10
8:23:55 AM - Compilation complete. Watching for file changes.

Aug 18 08:24:00 hollandmac backboardd[74984]: SecTaskCopyDebugDescription: nativescriptinst[93322]
Aug 18 08:24:00 hollandmac backboardd[74984]: SecTaskCopyDebugDescription: nativescriptinst[93322]
Aug 18 08:24:00 hollandmac backboardd[74984]: SecTaskCopyDebugDescription: nativescriptinst[93322]
Aug 18 08:24:00 hollandmac backboardd[74984]: SecTaskCopyDebugDescription: nativescriptinst[93322]
Aug 18 08:24:00 hollandmac backboardd[74984]: SecTaskLoadEntitlements failed error=22 cs_flags=200, task->pid_self=-1
Aug 18 08:24:00 hollandmac backboardd[74984]: SecTaskCopyDebugDescription: nativescriptinst[93322]
Aug 18 08:24:00 hollandmac nativescriptinstagram[93322]: assertion failed: 15G31 13E230: libxpc.dylib + 71506 [6F98A9DA-B46E-3A2B-88D4-92F1EC77477F]: 0x7d
Aug 18 08:24:00 hollandmac nativescriptinstagram[93322]: CONSOLE LOG file:///app/tns_modules/@angular/core/src/facade/lang.js:345:16: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.

Most of the time, nearly all of this information is irrelevant to the developer. All they need to know is whether or not the command they issued is running, and what it's current status is. You might imagine that it could look like the following....

tns livesync ios --emulator --watch
Preparing livesync .... 10% [ 20%, 30%, ... ]
Watching for changes...

In the rare cases where the developer wants to see the complete output, they could pass in a verbose or v flag.

tns livesync ios --emulator --watch --v
@tzraikov tzraikov self-assigned this Sep 1, 2016
@tzraikov tzraikov added this to the 2.4.0 milestone Sep 20, 2016
@tzraikov tzraikov removed this from the 2.4.0 milestone Oct 20, 2016
@tsonevn tsonevn added this to the 2.5.0 milestone Dec 5, 2016
@vchimev vchimev modified the milestones: 2.6.0 (TBD), 2.5.0 Jan 4, 2017
@pkoleva pkoleva modified the milestone: 2.6.0 (TBD) Jan 26, 2017
@etabakov etabakov added the ux label Mar 22, 2017
@dtopuzov
Copy link
Contributor

dtopuzov commented Aug 23, 2017

Hi @burkeholland

With mativescript@next we strip native build output.
We will still show warning and error if such happen, but if native build pass we will just print Project successfully built.

Do you think it is enough or we should further reduce logs?

@rosen-vladimirov
Copy link
Contributor

I consider this issue as resolved. Please open a separate one in case the current output is not short enough.

@erkanarslan
Copy link

This is not working after NS 4.0. Output contains lots of unnecessary things.

@danbockapps
Copy link

I'm getting way too much console output in NativeScript 5.0.3 after installing nativescript-plugin-firebase.

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