!Fix: mutex was used prior to initialization on 'log' command processing