Fixed logging to follow environment config levels.