Skip to content

Commit

Permalink
Merge pull request #52 from NewFuture/NewFuture-fix-51
Browse files Browse the repository at this point in the history
fix(alidns): log action #51
  • Loading branch information
NewFuture authored Apr 4, 2019
2 parents 3be1a1a + 130ce33 commit 6c656ec
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 6c656ec

Please sign in to comment.