Converted errors to logs with panics