[PATCH v2 2/9] log: don't build the trace buffer when log is not ready