try our best to capture logs