print errors to log in addition to client