Fix bug in pipeline logging