fix log pattern bug