Comments (11)
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.
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
itsGemfile
.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 aheroku 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.
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:
- removed the plugin install command on https://addons.heroku.com/papertrail, and instead made the link more obvious in the paragraph description
- moved the plugin to its own top-level docs section
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.
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:
- removed the plugin install command on
https://addons.heroku.com/papertrail, and instead made the link more
obvious in the paragraph description- moved the plugin to its own top-level docs section
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.
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.
Good idea. I'm leaving this open until that is live.
from papertrail-cli.
Using papertrail gem in twke just doesn't work with the papertrail plugin, it fails when trying to load seach_client.
from papertrail-cli.
Hi Jose,
Any chance you have a traceback that you could paste or email?
Thanks,
Troy
from papertrail-cli.
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.
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.
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)
- System "XXXX" not found. HOT 2
- --min-time today comes up empty
- Suggestion: Short flags for --min-time and --max-time + --last LINES
- Internal Server Error when adding a system HOT 4
- HTTPServerException when calling papertrail HOT 2
- Where to get the API key from? HOT 2
- Is this gem abandoned?
- Feature request: -a, -b, -c options like grep has HOT 1
- "Small standalone binary"?
- Python's logging with severity level is different from Heroku console's severity level
- [Feature] A new command to delete groups
- Error if `--min-time` is in the future HOT 2
- Refactor to improve GPA HOT 2
- papertrail -f leaks memory HOT 4
- Error if both follow and min/max time flags are given
- uninitialized constant Papertrail::VERSION (NameError) HOT 2
- When the papertrail firehose is verbose, `papertrail -f` silently drops some logs HOT 3
- How to configure proxy settings for the cli
- how to configure number of search results HOT 5
- add papertrail-systems command to list systems HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papertrail-cli.