fixed logger deprecation warnings.