Don't return the log to the page if the response is json