logging deprecation fix