better logging in StatHat helper