Logging might not be set up at all so its going to cause some issues. Either add a check if logging is setup or remove all the logging statements