Adding logging to this stupid filter

Adding logging to this stupid filter