diff --git a/db_transfer.py b/db_transfer.py index a9657b8..b85c66e 100644 --- a/db_transfer.py +++ b/db_transfer.py @@ -311,6 +311,8 @@ class DbTransfer(TransferBase): rows = self.pull_db_users(conn) conn.close() + if len(rows) == 0: + logging.warn('no user in db') return rows def pull_db_users(self, conn): @@ -517,5 +519,7 @@ class MuJsonTransfer(TransferBase): except Exception as e: logging.error(e) + if len(rows) == 0: + logging.warn('no user in json file') return rows diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index a6c981a..13e010a 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -114,7 +114,7 @@ class TCPRelayHandler(object): config['method']) except Exception: self._stage = STAGE_DESTROYED - logging.error('creater encryptor fail at port %d', server._listen_port) + logging.error('create encryptor fail at port %d', server._listen_port) return self._encrypt_correct = True self._obfs = obfs.obfs(config['obfs'])