File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 2.2.2] - 2019-04-03
8
+ #### Fixed
9
+ * Sender for logging (Handler) get Severity correctly when use custom Level info
10
+
7
11
## [ 2.2.1] - 2019-03-28
8
12
#### Fixed
9
13
* Lookup shell client now read config correctly
Original file line number Diff line number Diff line change 1
1
2
2
[ ![ 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 )
3
3
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.1 -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.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/ )
5
5
6
6
7
7
# Devo Python SDK
Original file line number Diff line number Diff line change @@ -506,7 +506,11 @@ def emit(self, record):
506
506
try :
507
507
msg = self .format (record )
508
508
msg += '\000 '
509
- self .send (tag = self ._logger_tag , msg = msg , facility = self ._logger_facility ,
510
- severity = priority_map .get (record .levelname , "info" ))
509
+ try :
510
+ severity = priority_map .get (record .levelname , record .levelno )
511
+ except AttributeError :
512
+ severity = priority_map .get ("INFO" )
513
+ self .send (tag = self ._logger_tag , msg = msg ,
514
+ facility = self ._logger_facility , severity = severity )
511
515
except Exception :
512
516
self .handleError (record )
You can’t perform that action at this time.
0 commit comments