log_handler test: Ignore unknown categories
Tests run parallel in multiple threads. This makes the log_handler test flaky because it may see log messages triggered by other threads. Make the handler ignore all messages not in the category we care about.