Use a ternary statement in logging code
Use a ternary statement in logging code

See https://github.com/badges/shields/pull/1040#discussion_r136196343.

Closes #1040.

badges/shields,freezy-sk/shields,badges/shields,freezy-sk/shields,badges/shields