changed the default trace level to MID_TRACE for when DBG is defined.