Skip to content

ensure that we start logging from the beginning of the line - #6

Merged
lukemelia merged 1 commit into
masterfrom
log-tweaks
Jan 11, 2016
Merged

lukemelia merged 1 commit into
masterfrom
log-tweaks

Conversation

@ghedamat

Copy link
Copy Markdown
Contributor

This is related to ember-cli-deploy/ember-cli-deploy#280

In order to ensure proper rendering we need to reset the line position
to 0. This can not be the case if the progress bar is rendering and a
plugin tries to display a log message (i.e. the redis plugin notifying
about the upoaded revision)

/cc @lukemelia

@lukemelia

Copy link
Copy Markdown
Collaborator

@ghedamat I think this may break downstream tests which attempt to mock ui, no?

@ghedamat

Copy link
Copy Markdown
Contributor Author

@lukemelia you might be correct indeed.

the reason why I'm reaching to the original stream is because ember-cli wraps the outputStream so that it can play nicely with the pleasantProgress indicator.

are we ok in adding a guard to see if actualOutputStream is present or shall we try a different approach?

@lukemelia

Copy link
Copy Markdown
Collaborator

I guess I am ok with that, with a comment. I don't have a ton of experience with the arcane art of terminal output.

@ghedamat
ghedamat force-pushed the log-tweaks branch 3 times, most recently from bb9ffee to ff8a67a Compare January 11, 2016 03:43
This is related to ember-cli-deploy/ember-cli-deploy#280

In order to ensure proper rendering we need to reset the line position
to 0. This can not be the case if the progress bar is rendering and a
plugin tries to display a log message (i.e. the redis plugin notifying
about the upoaded revision)
lukemelia added a commit that referenced this pull request Jan 11, 2016
ensure that we start logging from the beginning of the line
@lukemelia
lukemelia merged commit f60b8e4 into master Jan 11, 2016
@lukemelia
lukemelia deleted the log-tweaks branch January 11, 2016 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants