Comments (7)
Needs a full stacktrace posted.
from semantic_logger.
Hey @nateberkopec @reidmorrison. Sorry, I completely forgot about this (holiday effect I guess).
I think I know where the problem is, but didn't get a chance to test it yet
If you look here, the context is being munged to fit with the raven structure (that was part of the fix I applied on #70).
What I missed however, is doing the same thing when an exception is raised just a few lines above it.
Hope to find time to test and apply this fix over the weekend hopefully.
from semantic_logger.
@reidmorrison created a PR that should fix this. Since the tests are rather synthetic, I'm wondering how to simulate this on a "real" environment though... Any pointers?
from semantic_logger.
@gingerlime check out this test for an example on how to use both mocks during tests and then to actually call the target system on demand for "real" development testing: https://github.com/rocketjob/semantic_logger/blob/master/test/metric/signalfx_test.rb#L13
It does it by means of an environment variable so that testing in Travis is mocked.
from semantic_logger.
Thanks @reidmorrison. That's a good suggestion.
I'm still curious to understand when this branch of the appender is activated though? (When does log.exception get set, or how to simulate it from the console)
from semantic_logger.
How about we do a screen sharing session and walk through the code?
I am available 10am through 5 pm Eastern (NY) time, send me a private message through Github with a time and I will send you link to chat.
from semantic_logger.
Thanks @reidmorrison, that's exceptionally kind of you. Totally awesome... I really don't want to take up your time though (and it's also pretty busy here, to be perfectly honest).
I hope to find some time to play around with it a bit more over the weekend, and hope to figure things out. Hope to keep the option for a screenshare open for future though? I'm sure something or other will come up, and I'd love the opportunity, but best to keep it for something more important.
Cheers,
Yoav
from semantic_logger.
Related Issues (20)
- Default formatter doesn't return context by default. HOT 1
- Semantic Logger removes keys from hash passed to loggers
- Support message and payload (v5 feature request) HOT 7
- Cannot use Sentry.init properly with sentry-ruby appender HOT 2
- Add support for New Relic log forwarding feature HOT 9
- Elasticsearch Specifying types in bulk requests is deprecated HOT 4
- Log level signal trap omits :fatal and :error levels HOT 2
- Suggestion: Change Loggable logger initialization from lazy to eager HOT 5
- RSpec test suite hangs intermittently unless `sync!` has been called HOT 1
- SemanticLogger.sync! is Not Thread-Safe
- Semantic Logger + Sidekiq 7 HOT 3
- Exception on `logger.error({ payload: '', foo: 'bar' })` (trying to log an arbitrary hash with `payload` key) HOT 1
- HTTP appender / Possible to write custom Headers HOT 1
- Segmentation fault in Formatters::Base for async appender HOT 2
- Improve CaptureLogEvents test logger HOT 1
- Error is raised when logging first occurs in a signal trap
- Base formatter time_format docs and behavior conflict, with no way to initialize it to nil in the ctor.
- Calling 'reopen' and Adding an Appender Creates 2 Logging Threads HOT 2
- Release Version 4.13 HOT 1
- Intermittent `NameError`/`LoadError` when loading Rails environment HOT 3
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 semantic_logger.