CocoaPods / search.cocoapods.org

This is the CocoaPods search engine repo, please direct CocoaPods issues to the main CocoaPods repository.
25 stars 11 forks source link

Access to logs #2

Closed alloy closed 12 years ago

alloy commented 12 years ago

Is there a way for me to see the logs?

Currently the app returns a 500 :-/

floere commented 12 years ago

Oh dear. I can, using "heroku logs". I'll try to find out how you can get access.

floere commented 12 years ago

When indexing, the search tries to: /tmp/specs/EGOTableViewPullRefresh/0.1/EGOTableViewPullRefresh.podspec:5:in block in _eval_podspec': undefined methodlicense=' for #Pod::Specification:0x00000002326868 (NoMethodError) 2011-11-14T10:30:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/cocoapods-0.2.0/lib/cocoapods/specification.rb:23:in `initialize'

alloy commented 12 years ago

Ah I see, it’s a CocoaPods 0.2.0 => 0.3.0 issue. Maybe the indexer should add a Specification#method_missing implementation which ensures that when we add new attributes this doesn't cause a problem?

floere commented 12 years ago

This is an idea, but perhaps we should restart the search whenever CocoaPods is released? Perhaps… even through a post-receive hook? :D

floere commented 12 years ago

What I wanted to say was that I'd much prefer an automated solution to the problem. I guess it's a good idea for the app to do exception handling and in case one occurs, do not try to index. Then, try to get the newer CocoaPods gem and restart itself.

floere commented 12 years ago

Fixed in 0.3.1. Access to logs given :)

Let's discuss automation of this in another issue.