fix: redirect logs before greping