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

List order of same timestamp log is incorrect. Should use krsort. #18

Open
qualiatokyoltd opened this issue Sep 15, 2020 · 0 comments
Open

Comments

@qualiatokyoltd
Copy link

Hi, thank you for this very useful extension,
I found a little problems , same timestamp log is incorrect.

artisan

for($i=0;$i<20;$i++){Log::debug($i);}

log viewer list

Level Env Time Message  
DEBUG local 2020-09-15 14:18:15 9  
DEBUG local 2020-09-15 14:18:15 8  
DEBUG local 2020-09-15 14:18:15 7  
DEBUG local 2020-09-15 14:18:15 6  
DEBUG local 2020-09-15 14:18:15 5  
DEBUG local 2020-09-15 14:18:15 4  
DEBUG local 2020-09-15 14:18:15 3  
DEBUG local 2020-09-15 14:18:15 2  
DEBUG local 2020-09-15 14:18:15 19  
DEBUG local 2020-09-15 14:18:15 18  
DEBUG local 2020-09-15 14:18:15 17  
DEBUG local 2020-09-15 14:18:15 16  
DEBUG local 2020-09-15 14:18:15 15  
DEBUG local 2020-09-15 14:18:15 14  
DEBUG local 2020-09-15 14:18:15 13  
DEBUG local 2020-09-15 14:18:15 12  
DEBUG local 2020-09-15 14:18:15 11  
DEBUG local 2020-09-15 14:18:15 10  
DEBUG local 2020-09-15 14:18:15 1  
DEBUG local 2020-09-15 14:18:15 0

Fix this problems,

LogViewer.php line 349

rsort($parsed);
to
krsort($parsed);

I'm glad if you can use it.

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

No branches or pull requests

1 participant