Fix log printing, missing format, var

fix missing param, format