Add logging to "filter.measurements" function.