log to console when writing screenshot on test failure