README.md in timetree-0.1.1 vs README.md in timetree-0.1.2
- old
+ new
@@ -85,9 +85,18 @@
e
=> #<TimeTree::ApiError title:Not Found, status:404>
e.response
=> #<Faraday::Response>
end
+
+# if the log level set :debug, you can get the request/response information.
+TimeTree.configuration.logger.level = :debug
+=> #<TimeTree::Event id:event_id_001_not_found>
+>> client.event 'cal_id_001', 'event_id_001_not_found'
+I, [2020-06-24T10:05:07.294807] INFO -- : GET https://timetreeapis.com/calendars/cal_id_001/events/event_id_001_not_found?include=creator%2Clabel%2Cattendees
+D, [2020-06-24T10:05:07.562038] DEBUG -- : Response status:404, body:{:type=>"https://developers.timetreeapp.com/en/docs/api#client-failure", :title=>"Not Found", :status=>404, :errors=>"Event not found"}
+Traceback (most recent call last):
+TimeTree::ApiError (TimeTree::ApiError)
```
## Contributing
Bug reports and pull requests are welcome on [GitHub](https://github.com/koshilife/timetree-api-ruby-client). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.