replaced log_queue array with CBuffer