write debug only when NODE_ENV not production