Comments (9)
I believe it is possible if you configure logging for pybrake - see https://github.com/airbrake/pybrake/blob/master/pybrake/utils.py#L5 and https://docs.python.org/3/library/logging.html
from pybrake.
This does not seem to be a logging issue. If the docker image does not contain .git folder contents in it (because of .dockerignore), then the init of Notifier class raises an exception because the HEAD file is not present. This breaks pybrake initialization itself. Is it possible to change pybrake such a way that it does not require the HEAD file?
from pybrake.
What exception is thrown in your case?
from pybrake.
pybrake - ERROR - get_git_revision failed: [Errno 2] No such file or directory: '/<project_name>/.git/HEAD
This is through from Notifier init method and hence the notifier initialization fails and hence cannot be used any more.
from pybrake.
That looks like a log message from pybrake
logger. Besides it should disappear if you upgrade to v0.4.0, but it is still in beta.
from pybrake.
Not sure it is from the logger. I think the place where this breaks is this:
Line 49 in 9693af1
And the call from notifier to this happens from here:
Line 71 in 9693af1
Just want to confirm if this is already fixed in v0.4.0. Also please let me know when will the version be out of beta and into GA?
from pybrake.
Those exceptions should be handled in
Lines 11 to 13 in 9693af1
We still need more time to release v0.4
from pybrake.
Can we get this ticket reopened? I'm seeing the same error on heroku. It would be nice if it would pick up the SOURCE_VERSION
from pybrake.
It is better to make sure you are using the last version and open a new issue with as much details as possible.
from pybrake.
Related Issues (20)
- Pybrake query notifier throws error when query is a psycopg2 Composed object HOT 1
- [PROPOSAL] Disable stats calls by default HOT 5
- Setting "level" in log config does not change what is sent to airbrake HOT 1
- m
- TypeError: filter() missing 1 required positional argument: 'record' caused by socket timeout HOT 9
- Turn Notifier class into a singleton? HOT 2
- Setup Airbrake for your Python application
- Pypi Source not working HOT 1
- 400 Bad Request: Did not attempt to load JSON data because the request Content-Type was not 'application/json'.
- Errors filtered out when middleware involve in backtrace HOT 1
- Usage outside of Django fails due to Django references HOT 2
- App fails to launch requiring pybrake middleware
- pybrake Timeout errors in 1.2.0 HOT 19
- Fastapi/Sanic middleware does not support lack of SqlAlchemy package
- Django project not alerting airbrake on logger.error HOT 4
- How to notify from behind a proxy
- Logging integration not working in lambdas
- get_full_name optional on AbstractBaseUser HOT 1
- Airbrake Starlette middleware throws error when running behind a reverse proxy
- Pybrake raises depecration warnings with the FastAPI middleware 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 pybrake.