Fix bad logging to text logs instead of ILogger