Fix cmd console logging