GithubHelp home page GithubHelp logo

bugsplat-git / bugsplat-py Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 30 KB

๐Ÿ›๐Ÿ๐Ÿ’ฅ BugSplat error reporting integration for Python

Home Page: https://docs.bugsplat.com/introduction/getting-started/integrations/cross-platform/python

License: MIT License

Python 100.00%
bugsplat error-reporting exception-reporting python

bugsplat-py's People

Contributors

bobbyg603 avatar zmrl010 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zmrl010

bugsplat-py's Issues

Can't Import

  1. Ran:
pip install bugsplat==1.0.1
  1. Wrote the following script:

main.py

from bugsplat import BugSplat
from helpers import crash

bugsplat = BugSplat("fred", "my-python-crasher", "1.0")

bugsplat.set_default_app_key('key!')
bugsplat.set_default_description('description!')
bugsplat.set_default_email('[email protected]')
bugsplat.set_default_user('Fred')

try:
    crash()
except Exception as e:
    bugsplat.post(
        e,
        additional_file_paths=[],
        app_key='other key!',
        description='other description!',
        email='[email protected]',
        user='Barney'
    )

helpers.py

def crash():
    _sampleStackFrame0(1337)

def _sampleStackFrame0(n):
    m = n + 9001
    _sampleStackFrame1(m)

def _sampleStackFrame1(n):
    _sampleStackFrame2(n)

def _sampleStackFrame2(n):
    x = 1 / 0
  1. Got the following error:
(venv) bobby@Mr-Presidents-MacBook-Pro my-python-crasher % python main.py
Traceback (most recent call last):
  File "/Users/bobby/Desktop/bugsplat/my-python-crasher/main.py", line 1, in <module>
    from bugsplat import BugSplat
  File "/Users/bobby/Desktop/bugsplat/my-python-crasher/venv/lib/python3.10/site-packages/bugsplat/__init__.py", line 11, in <module>
    from .bugsplat import BugSplat
  File "/Users/bobby/Desktop/bugsplat/my-python-crasher/venv/lib/python3.10/site-packages/bugsplat/bugsplat.py", line 11, in <module>
    logging.basicConfig(level="info")
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 2059, in basicConfig
    root.setLevel(level)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 1452, in setLevel
    self.level = _checkLevel(level)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/__init__.py", line 198, in _checkLevel
    raise ValueError("Unknown level: %r" % level)
ValueError: Unknown level: 'info'

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.