fix dead code warning in dprintf log rotation #3590 (found by coverity)
===VersionHistory:None===