Fixing deprecation warnings in logrotate module

Change-Id: I9e69cc96db5e84e729d7bdbe655c3933886903ce
Merge "Fixing deprecation warnings in logrotate module"