Replace EDEBUG and WDEBUG with ERROR and WARN