Fix log redirection.