Skip to content

Commit

Permalink
format it as "" for None instead of "None" #76
Browse files Browse the repository at this point in the history
  • Loading branch information
wjo1212 committed May 24, 2018
1 parent 3c815ef commit 57772a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion aliyun/log/logger_hanlder.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def set_fields(self, fields):

@staticmethod
def _n(v):
if v is None:
return ""

if isinstance(v, (dict, list)):
try:
v = json.dumps(v)
Expand Down Expand Up @@ -376,7 +379,7 @@ def _post(self):
class UwsgiQueuedLogHandler(QueuedLogHandler):
"""
Queued Log Handler for Uwsgi, depends on library `uwsgidecorators`, need to deploy it separatedly.
:param end_point: log service endpoint
:param access_key_id: access key id
Expand Down
2 changes: 1 addition & 1 deletion aliyun/log/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.6.30'
__version__ = '0.6.30.1'
USER_AGENT = 'log-python-sdk-v-' + __version__
LOGGING_HANDLER_USER_AGENT = 'logging-handler, ' + USER_AGENT
CONSUMER_LIB_USER_AGENT = 'consumer-lib, ' + USER_AGENT
Expand Down

0 comments on commit 57772a4

Please sign in to comment.