Only log errors if request method is isset