File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ 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.0.2] - 2019-01-23
8
+ #### Fixed
9
+ * devo.common logging handler
10
+ * Errors response in devo.api
11
+
7
12
## [ 2.0.0] - 2019-01-21
8
13
#### Changed
9
14
* Changed all logic in API calls for stream and non stream calls, improving speed in streaming x3
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.0.0 -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.0.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 1
1
__description__ = 'Devo Python Library.'
2
2
__url__ = 'http://www.devo.com'
3
- __version__ = "2.0.0 "
3
+ __version__ = "2.0.2 "
4
4
__author__ = 'Devo'
5
5
__author_email__ = 'support@devo.com'
6
6
__license__ = 'MIT'
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def stream_available(resp):
159
159
@staticmethod
160
160
def _format_error (error ):
161
161
return '{"msg": "Error Launching Query", "status": 500, ' \
162
- '"object": "%s"}' % error
162
+ '"object": "%s"}' % str ( error ). replace ( " \" " , " \\ \" " )
163
163
164
164
@staticmethod
165
165
def _is_correct_response (line ):
Original file line number Diff line number Diff line change 2
2
""" Generic function to logging events in Devo SDK """
3
3
import os
4
4
import logging
5
+ from logging .handlers import RotatingFileHandler
5
6
6
7
7
8
def get_log (path_base = "./" ,
@@ -30,8 +31,6 @@ def set_handler(path, msg_format):
30
31
31
32
:return: RotatingFileHandler object
32
33
"""
33
- handler = logging .handlers .RotatingFileHandler (path ,
34
- maxBytes = 2097152 ,
35
- backupCount = 5 )
34
+ handler = RotatingFileHandler (path , maxBytes = 2097152 , backupCount = 5 )
36
35
handler .setFormatter (set_formatter (msg_format ))
37
36
return handler
You can’t perform that action at this time.
0 commit comments