#1 only logging when in debug