Fix nid/gid filter in logs macro