jhchee commented on code in PR #124:
URL: 
https://github.com/apache/gravitino-playground/pull/124#discussion_r1912111694


##########
playground.sh:
##########
@@ -165,6 +165,11 @@ checkPortsInUse() {
   fi
 }
 
+pruneOldLogs() {

Review Comment:
   This function:
   1. Lists all log files matching the pattern playground-*.log sorted by 
modification time (-t).
   2. Filters out directories (grep -v '/$').
   3. Skips the first 3 files (tail -n +4).
   4. Deletes the remaining files (xargs -I {} rm -- {}).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to