playerName can be NULL. Check if it is before logging