Prefer optional contract name for logging