Properly log redirects.