Skip to content

Commit

Permalink
fix(alidns): log action #51
Browse files Browse the repository at this point in the history
fix #51
  • Loading branch information
NewFuture authored Apr 3, 2019
1 parent 3be1a1a commit 130ce33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dns/alidns.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def request(param=None, **params):
conn.close()

if response.status < 200 or response.status >= 300:
logger.warn('%s : error:%s', action, data)
logger.warn('%s : error:%s', params['Action'], data)
raise Exception(data)
else:
data = json.loads(data.decode('utf8'))
logger.debug('%s : result:%s', action, data)
logger.debug('%s : result:%s', params['Action'], data)
return data


Expand Down

0 comments on commit 130ce33

Please sign in to comment.