fix to tag-based log filtering

I had a variable-shadowing bug in earlier code.
no more indiscriminate logging