log capture improvement, fixing filtering