Browse Source

fix log RLIMIT_NOFILE

dev
破娃酱 8 years ago
parent
commit
1fe6e89c07
  1. 1
      db_transfer.py

1
db_transfer.py

@ -189,6 +189,7 @@ class TransferBase(object):
socket.setdefaulttimeout(timeout)
last_rows = []
db_instance = obj()
ServerPool.get_instance()
import resource
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE))
try:

Loading…
Cancel
Save