Skip to content

Commit

Permalink
[fix] fix a lot of log.info
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Jun 2, 2015
1 parent ba8f172 commit 52e68a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from distutils.core import setup


__version__ = '0.3.3'
__version__ = '0.3.4'
__author__ = 'Dmitry Orlov <[email protected]>'


Expand Down
4 changes: 1 addition & 3 deletions wsrpc/websocket/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import tornado.gen
import types
import tornado.concurrent
from multiprocessing.pool import ThreadPool
from multiprocessing import cpu_count
from functools import partial
from tornado.log import app_log as log
Expand Down Expand Up @@ -316,8 +315,7 @@ def _executor(self, func):
def _send(self, **kwargs):
try:
data = self._to_json(**kwargs)
log.debug(Lazy(lambda: "Sending message to {0}: {1}".format(self.id, json.dumps(data))))
log.info(Lazy(lambda: "Sending message {2} to {0} length {1}".format(self.id, len(data), kwargs.get('serial'))))
log.debug("Sending message to %s serial %s: %s", self.id, Lazy(lambda: kwargs.get('serial')), data)
self.write_message(data, binary=False)
except tornado.websocket.WebSocketClosedError:
self.close()
Expand Down

0 comments on commit 52e68a7

Please sign in to comment.