Fixed the real cause of the problem and put the redirects to LOGFILE back.
The actual cause of the problem was that we were rotating the sync_replica.log
file twice within that function because of the call to rotate $LOGFILE and a
second call to rotate "sync_replica.log". I removed the 2nd call to rotate the
sync_replica.log.