Fix some logging calls