added logging information for redirection