log: fix pattern matching