api->log() add missing break; and default rule