log: fix test code issue caused by deepinlog backend

Change-Id: Ic675e47777291f65439eee7cb5a3db7f07ff7420