only logging if debug env variable is set