remove traces and add details to the warn log when forbidden