stop constant logging and throw errors