add log to mem_queue.c