More attempts to fix the logging