Giter Club home page Giter Club logo

Comments (11)

troy avatar troy commented on August 27, 2024

Hi Vladimir,

I think there may be some confusion. In order to use the Heroku addon, your Rails app does not need (and shouldn't have) the Papertrail gems in its Gemfile.

The papertrail/papertrail-cli gems are meant to be installed on your workstation(s) as a way to tail and search the logs. They aren't needed to generate the log messages.

Separately, if you're using the Heroku addon, you may want to try the Heroku plugin for querying and searching logs. It adds a heroku pt:logs command. However, the plugin is also meant to run on local workstations, outside of your Rails app.

Please let me know if I've misunderstood the problem or I can help get any of these working. Thanks,

Troy

from papertrail-cli.

vovayartsev avatar vovayartsev commented on August 27, 2024

Troy,

You are right. I've installed not only the addon, but also the Heroku
plugin into my Heroku application. I thought they are both required, mostly
because of confusing instructions at https://addons.heroku.com/papertrail

I removed Heroku plugin, and now I can see my logs after 'heroku
addons:open papertrail". Great! :-)

Thanks,
Vladimir Yartsev

On Thu, May 17, 2012 at 6:51 PM, Troy Davis <
[email protected]

wrote:

Hi Vladimir,

I think there may be some confusion. In order to use the Heroku addon,
your Rails app does not need (and shouldn't have) the Papertrail gems in
its Gemfile.

The papertrail/papertrail-cli gems are meant to be installed on your
workstation(s) as a way to tail and search the logs. They aren't needed to
generate the log messages.

Separately, if you're using the Heroku addon, you may want to try the
Heroku plugin
for querying and searching logs. It adds a heroku pt:logs command.
However, the plugin is also meant to run on local workstations, outside of
your Rails app.

Please let me know if I've misunderstood the problem or I can help get any
of these working. Thanks,

Troy


Reply to this email directly or view it on GitHub:
#13 (comment)

from papertrail-cli.

troy avatar troy commented on August 27, 2024

Hi Vladimir,

Glad to hear that this was it, and thanks for the suggestion about making the wording clearer. I just edited the intro text in 2 places:

Check out https://addons.heroku.com/papertrail and see what you think. I'd welcome any more edits or other information you would have found useful here. Thanks,

Troy

from papertrail-cli.

vovayartsev avatar vovayartsev commented on August 27, 2024

Troy,

Thanks, it's much more clear now. I even tried heroku plugin and 'heroku
pt:logs' worked for me.

PS: the 'Bookmark' feature (i.e. an URL like https://api.heroku.com/myapps//addons/papertrail:
) is especially useful in my application. Thanks for that.

Thanks,
Vladimir Yartsev

On Sat, May 19, 2012 at 3:35 AM, Troy Davis <
[email protected]

wrote:

Hi Vladimir,

Glad to hear that this was it, and thanks for the suggestion about making
the wording clearer. I just edited the intro text in 2 places:

Check out https://addons.heroku.com/papertrail and see what you think.
I'd welcome any more edits or other information you would have found useful
here. Thanks,

Troy


Reply to this email directly or view it on GitHub:
#13 (comment)

from papertrail-cli.

vovayartsev avatar vovayartsev commented on August 27, 2024

Troy,

the feature that I really missing in Heroku addon is providing a query
string along with the bookmark url, e.g.:

https://api.heroku.com/myapps//addons/papertrail:?q=some_query

When I used this feature outside of Heroku, I just added ?q=some_query to
the end of my URL, and I could let the user see the debug output for a
particular operation. This doesn't seem to work with Heroku, since "?q=..."
is stripped during the redirect.

Thanks,
Vladimir Yartsev

On Sat, May 19, 2012 at 1:53 PM, [email protected] <
[email protected]> wrote:

https://api.heroku.com/myapps//addons/papertrail:

from papertrail-cli.

troy avatar troy commented on August 27, 2024

Good idea. I'm leaving this open until that is live.

from papertrail-cli.

josacar avatar josacar commented on August 27, 2024

Using papertrail gem in twke just doesn't work with the papertrail plugin, it fails when trying to load seach_client.

from papertrail-cli.

troy avatar troy commented on August 27, 2024

Hi Jose,

Any chance you have a traceback that you could paste or email?

Thanks,

Troy

from papertrail-cli.

josacar avatar josacar commented on August 27, 2024

Just add twke and papertrail, then run from bundle:

~/code/bot$ bundle exec twke
/home/selu/gems/gems/papertrail-0.9.6/lib/papertrail.rb:5:in `require': cannot load such file -- papertrail/search_client (LoadError)
        from /home/selu/gems/gems/papertrail-0.9.6/lib/papertrail.rb:5:in `<top (required)>'
        from /home/selu/gems/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `require'
        from /home/selu/gems/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
        from /home/selu/gems/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `each'
        from /home/selu/gems/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `block in require'
        from /home/selu/gems/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `each'
        from /home/selu/gems/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `require'
        from /home/selu/gems/gems/bundler-1.2.2/lib/bundler.rb:128:in `require'
        from /home/selu/gems/bundler/gems/twke-cc17533b30d1/lib/twke.rb:4:in `<module:Twke>'
        from /home/selu/gems/bundler/gems/twke-cc17533b30d1/lib/twke.rb:1:in `<top (required)>'
        from /home/selu/gems/bundler/gems/twke-cc17533b30d1/bin/twke:6:in `require'
        from /home/selu/gems/bundler/gems/twke-cc17533b30d1/bin/twke:6:in `<top (required)>'
        from /home/selu/gems/bin/twke:23:in `load'
        from /home/selu/gems/bin/twke:23:in `<main>'

from papertrail-cli.

technicalpickles avatar technicalpickles commented on August 27, 2024

I just ran into this too. Doesn't look like papertrail/search_client doesn't exist anymore. Maybe a remnant of a refactor?

I was able to work around with:

gem "papertrail", :require => "papertrail/connection"

Maybe papertrail.rb could be changed to that?

from papertrail-cli.

allolex avatar allolex commented on August 27, 2024

Thanks for the workaround @technicalpickles. It saved us some time just now. I owe you a beverage_of_your_choice, maybe at Alligator Soul, maybe sometime in October?

from papertrail-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.