Only log if on production (not localhost).