fix logging for non-string values