Fix for logging of local commands.