Skip to content
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

[BUG] ProgressBar updates are posted to stderr #257

Open
danielsimkus opened this issue Aug 22, 2023 · 1 comment
Open

[BUG] ProgressBar updates are posted to stderr #257

danielsimkus opened this issue Aug 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@danielsimkus
Copy link

Describe the bug
The progress bar for the import is outputting to stderr instead of stdout like the other logs on the ImportCommand

2023-08-22T08:09:25.860445803Z stdout F Importing [App\Models\Something]
2023-08-22T08:09:26.070524393Z stderr F
2023-08-22T08:09:26.070559394Z stderr F Clean up
2023-08-22T08:09:26.070568085Z stderr F   1/153 [➤⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬]   0%

To Reproduce
Run an import

Expected behavior
The progress bar should be info/stdout as default

@danielsimkus danielsimkus added the bug Something isn't working label Aug 22, 2023
@hkulekci
Copy link
Contributor

This could be related to Stages somehow. I could not reproduce it on my local because of the shell. Could you give more detail related to how you are getting this response.

➜  laravel-scout-elasticsearch-example git:(main) ✗ php artisan scout:import
Importing [App\Models\Product]
Switching to the new index
5/5 [⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬] 100%

                                                                                                                        
 [OK] All [App\Models\Product] records have been imported.                                                              
                                                                                                                        

Importing [App\Models\Attribute]
Switching to the new index
5/5 [⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬⚬] 100%

                                                                                                                        
 [OK] All [App\Models\Attribute] records have been imported.                                                            

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants