convert uses of LOG_DEBUG to use ast_debug()