Skip to content

Commit 39e32dc

Browse files
authored
Merge pull request #59 from Worvast/master
Fixed bug in Sender CLI introduced in version 2.2.2
2 parents a635ac7 + 5090fbf commit 39e32dc

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.3] - 2019-04-22
8+
#### Fixed
9+
* Fixed bug in Sender CLI introduced in version 2.2.2
10+
711
## [2.2.2] - 2019-04-03
812
#### Fixed
913
* Sender for logging (Handler) get Severity correctly when use custom Level info

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[![master Build Status](https://travis-ci.com/DevoInc/python-sdk.svg?branch=master)](https://travis-ci.com/DevoInc/python-sdk) [![LICENSE](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/DevoInc/python-sdk/blob/master/LICENSE)
33

4-
[![wheel](https://img.shields.io/badge/wheel-yes-brightgreen.svg)](https://pypi.org/project/devo-sdk/) [![version](https://img.shields.io/badge/version-2.2.2-blue.svg)](https://pypi.org/project/devo-sdk/) [![python](https://img.shields.io/badge/python-2.7%20%7C%203.3%20%7C%203.4%20%7C%203.5%20%7C%203.6%20%7C%203.7-blue.svg)](https://pypi.org/project/devo-sdk/)
4+
[![wheel](https://img.shields.io/badge/wheel-yes-brightgreen.svg)](https://pypi.org/project/devo-sdk/) [![version](https://img.shields.io/badge/version-2.2.3-blue.svg)](https://pypi.org/project/devo-sdk/) [![python](https://img.shields.io/badge/python-2.7%20%7C%203.3%20%7C%203.4%20%7C%203.5%20%7C%203.6%20%7C%203.7-blue.svg)](https://pypi.org/project/devo-sdk/)
55

66

77
# Devo Python SDK

devo/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__description__ = 'Devo Python Library.'
22
__url__ = 'http://www.devo.com'
3-
__version__ = "2.2.1"
3+
__version__ = "2.2.3"
44
__author__ = 'Devo'
55
__author_email__ = 'support@devo.com'
66
__license__ = 'MIT'

devo/sender/data.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
FACILITY_USER, SEVERITY_INFO, COMPOSE, \
1313
COMPOSE_BYTES, priority_map
1414

15+
from devo.common import Configuration
16+
1517
PY3 = sys.version_info[0] > 2
1618
PY33 = sys.version_info[0] == 3 and sys.version_info[1] == 3
1719
PY34 = sys.version_info[0] == 3 and sys.version_info[1] == 4
@@ -119,7 +121,10 @@ def __init__(self, config=None, **kwargs):
119121
if not config:
120122
config = kwargs
121123
else:
122-
config.update(kwargs)
124+
if isinstance(config, Configuration):
125+
config.cfg.update(kwargs)
126+
else:
127+
config.update(kwargs)
123128

124129
if "type" not in config.keys():
125130
config["type"] = "SSL"
@@ -488,7 +493,7 @@ def from_config(config, con_type=None, logger=None):
488493
if "type" not in config.keys():
489494
config['type'] = con_type if con_type else "SSL"
490495

491-
return Sender(logger=logger, **config)
496+
return Sender(logger=logger, config=config)
492497

493498
def emit(self, record):
494499
"""

0 commit comments

Comments
 (0)