Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
When I run the admin log command to view the server logs, I find that some empty logs are often printed. For example:
![image](https://private-user-images.githubusercontent.com/37854724/411544594-2df1a158-d999-4024-81a1-0b7b2f25f8a2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzUzNzUsIm5iZiI6MTczOTY3NTA3NSwicGF0aCI6Ii8zNzg1NDcyNC80MTE1NDQ1OTQtMmRmMWExNTgtZDk5OS00MDI0LTgxYTEtMGI3YjJmMjVmOGEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAzMDQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0ZDVkMjc4ZDUyOTYwOTA3MjU4NDY3OTQzOTFlYzIxNjFjN2ViZDY5NDA5MTUxMDFiMGQ3YTVmNjE2MjA0YWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OYq5vTYeZjfylOIyswhGXXuTw1yM-iUSEMUAhOUz4j4)
Motivation and Context
We want to view the event logs of the minio, but the printed result is empty.
![image](https://private-user-images.githubusercontent.com/37854724/411546867-31077c51-eb50-463b-81b9-ad1134aee351.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzUzNzUsIm5iZiI6MTczOTY3NTA3NSwicGF0aCI6Ii8zNzg1NDcyNC80MTE1NDY4NjctMzEwNzdjNTEtZWI1MC00NjNiLTgxYjktYWQxMTM0YWVlMzUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAzMDQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4ZDFkMTczMjdkODdmNWUxNmMxZGY1OGI2NDVmZTBkZDgyOTVlODE0ODhmMzJhN2JkOGM3Nzk3NmQxMTJiNWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.t1JX0Zr5n1M_NBSuOJh9Uv6QhrStRSkNweashjbf5Xk)
ps:The event-level logs of nodes that fall out of the cluster and then rejoin the cluster are helpful.
How to test this PR?
mc admin log myminio --level all
![image](https://private-user-images.githubusercontent.com/37854724/411545740-2e50a450-c1a1-4b3d-88ca-1dc41235c4b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzUzNzUsIm5iZiI6MTczOTY3NTA3NSwicGF0aCI6Ii8zNzg1NDcyNC80MTE1NDU3NDAtMmU1MGE0NTAtYzFhMS00YjNkLTg4Y2EtMWRjNDEyMzVjNGIzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAzMDQzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM5MWVkZTZkNjZmOGYzMGE2ODU1MDFiNGYyZjg5MTM5MDVhZDAzZjRhNWVjMzBhNGU0N2Q2MDA3ZDhhYzQ0NjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oSLnjWCHQ0UOpmp0qgoKFIrOyHvAiHBy6GwTSFIknT0)
Types of changes
Checklist:
commit-id
orPR #
here)