Avoiding nulls in logs