Prevent building strings if they aren't going to be logged.