Skip to content

Commit

Permalink
Release v3.0.0b1 (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Sep 13, 2016
1 parent e51f6ac commit e68e139
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 9 deletions.
50 changes: 44 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Changelog
=========

## TBA
## 3.0.0b1 (2016-09-13)

This is a major release adding a number of new features and deprecating some
lesser used parts of the library.

### Enhancements

* Support customizing delivery and sending error reports using
[requests](http://docs.python-requests.org/en/master/).
Expand Down Expand Up @@ -37,10 +42,6 @@ Changelog
[Delisa Mason](https://github.com/kattrali)
[#86](https://github.com/bugsnag/bugsnag-python/pull/86)

## 2.6.0b1 (2016-09-08)

### Enhancements

* Support multiple clients in a single environment using `bugsnag.Client`. A new
client can be initialized using a `Configuration` or options passed to
`Client()`. By default, a client is installed as the system exception hook.
Expand Down Expand Up @@ -101,8 +102,45 @@ Changelog
[Delisa Mason](https://github.com/kattrali)
[#101](https://github.com/bugsnag/bugsnag-python/pull/101)

* Support creating a log handler from a client, and forwarding logged messages
to Bugsnag.

```python
client = Client(api_key='...')
logger = logging.getLogger(__name__)

logger.addHandler(client.log_handler())
```

Log messages can also be customized using additional information from the
log record and callbacks:

```python
client = Client(api_key='...')
logger = logging.getLogger(__name__)
handler = client.log_handler()

def add_extra_info(record, options):
if 'meta_data' not in options:
options['meta_data'] = {}

options['meta_data']['stats'] = {
'account_id': record.account_id,
'ab_test_slice': record.slice_name
}

handler.add_callback(add_extra_info)
logger.addHandler(handler)
```

`BugsnagHandler` arguments `api_key` and `extra_fields` were deprecated as a
part of this change.

[Delisa Mason](https://github.com/kattrali)
[#103](https://github.com/bugsnag/bugsnag-python/pull/103)

* Replace existing logging with a logger. Logs from bugsnag can now be
controlled by setting the log level of `bugsnag.logger`.
controlled by setting the log level of `logging.getLogger('bugsnag')`.
[Kyle Fuller](https://github.com/kylef)
[#95](https://github.com/bugsnag/bugsnag-python/pull/95)

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ If you're on the core team, you can release Bugsnag as follows:
* Commit

```
git commit -am v2.x.x
git commit -am v3.x.x
```

* Tag the release in git

```
git tag v2.x.x
git tag v3.x.x
```

* Push to git
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='bugsnag',
version='2.6.0b1',
version='3.0.0b1',
description='Automatic error monitoring for django, flask, etc.',
long_description=__doc__,
author='Simon Maynard',
Expand Down

0 comments on commit e68e139

Please sign in to comment.