Use proper logging API calls. Remove all instances of e.print...