-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fix EZP-29608: better output of updateserachindexsolr #206
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem for me besides the review remarks.
But No description provided., please... :)
{ | ||
if ( $this->CLI->isQuiet() ) | ||
return; | ||
//print( $string ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove.
//print( $string ); | ||
fwrite(STDOUT, $string); | ||
if ( $addEOL ) | ||
//print( $this->endlineString() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove.
Why did you use fwrite(STDOUT)
instead of $this->CLI
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's described in the related issue :-P
In short: STDOUT avoids problems with ob_start and friends. Without it, the output of the script becomes messy, at least when run thru ezp/console: some lines get repeated twice or even more, at different points in time)
cddb84d
to
ebc93d3
Compare
Comments taken into account. Also added more info on the issue at https://jira.ez.no/browse/EZP-26908 |
ping |
Anyone up for review ? |
+1 |
1 similar comment
+1 |
By default updateserachindex solr output is all mixed up and duplicated when run via ezpublish/console. This PR fixes that