open log on error