Fix use of console levels in _writeDebug