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 fix - log files were not removed. #280

Merged
merged 1 commit into from
Dec 22, 2016
Merged

Conversation

gaiajeon
Copy link
Contributor

@gaiajeon gaiajeon commented Dec 21, 2016

I found that previous scouter log files were not removed.
Scouter compare DataUnit for file deletion.
But comparing condition has Big value because it multiply DateUtil.MILLIS_PER_DAY with conf.log_keep_days.

체크 로직에 일수로 비교하게 되어 있는데 파일 삭제 전 비교 로직에서 conf.log_keep_days와 DateUtil.MILLIS_PER_DAY를 곱하게 되어 있어 정상적으로 scouter 로그 파일이 삭제되지 않는 현상을 발견했습니다.
수정 후 pull request합니다.

          change "DateUtil.MILLIS_PER_DAY * conf.log_keep_days" to
conf.log_keep_days for DateUnit calculation
@gunlee01
Copy link
Member

Thank you for your pull request.
We need to get your CLA on a first contribution, please sign it a link below and let us know.
(leave comment here after writing.)
Then we can accept your PR.

Scouter Contribution License Agreement

@gaiajeon
Copy link
Contributor Author

I submitted my CLA.
Should I leave more information for me?.
This is my First Open Source Contribution, so I have no experience.
Please Let me know. Thank you for your help.

@gunlee01 gunlee01 merged commit 10d001c into scouter-project:dev Dec 22, 2016
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

Successfully merging this pull request may close these issues.

2 participants