Pluging loading - log errors with logger instead of print statement