optimize code format, add log info to indicate boolean will be convert
to int when compatible mode is on