-
Notifications
You must be signed in to change notification settings - Fork 5
RDKEMW-5331: Add log redirection specification before launching container #298
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
base: develop
Are you sure you want to change the base?
Conversation
nhanasi
left a comment
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.
Please do proper test to ensure no breakage to existing logic,
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
| mkdir -p "$LogFilePathPerm/$APP_LOG" | ||
| backupLog "Move logs from $LOG_PATH to $LogFilePathPerm" | ||
| find "$LOG_PATH" -maxdepth 1 -mindepth 1 \( -type l -o -type f \) \( -iname "*.txt*" -o -iname "*.log*" -o -name "bootlog" \) -exec mv '{}' "$LogFilePathPerm" \; | ||
| find "$APP_LOG_PATH" -maxdepth 1 -mindepth 1 \( -type l -o -type f \) \( -iname "*.txt*" -o -iname "*.log*" \) -exec mv '{}' "$LogFilePathPerm/$APP_LOG" \; |
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.
This is not just about backup. A new sub directory in logs is not in alignment with the systems architecture. This also means that we will also loose capabilities to get telemetry insights.
Log monitoring, upload and other systems dealing with logging also might need to be thoughtfully revisisted.
This change cannot be taken in without involving system architects.
3b9bd1c to
79f9297
Compare
79f9297 to
9644fdc
Compare
Modifed the backup_log file to handle the directory available if its not exist and backup the apps log as well.