fixes
This commit is contained in:
parent
9c9ce9fec8
commit
bc35421760
@ -7,12 +7,10 @@ from typing import Union, Callable
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
from wrapper.libtox import LibToxAV
|
from wrapper.libtox import LibToxAV
|
||||||
#? from wrapper.toxencryptsave_enums_and_consts import *
|
import wrapper.toxav_enums as enum
|
||||||
import wrapper.toxencryptsave_enums_and_consts as enum
|
|
||||||
except:
|
except:
|
||||||
from wrapper.libtox import LibToxAV
|
from libtox import LibToxAV
|
||||||
#? from toxencryptsave_enums_and_consts import *
|
import toxav_enums as enum
|
||||||
import toxencryptsave_enums_and_consts as enum
|
|
||||||
|
|
||||||
def LOG_ERROR(a: str) -> None: print('EROR> '+a)
|
def LOG_ERROR(a: str) -> None: print('EROR> '+a)
|
||||||
def LOG_WARN(a: str) -> None: print('WARN> '+a)
|
def LOG_WARN(a: str) -> None: print('WARN> '+a)
|
||||||
|
@ -856,12 +856,13 @@ def bootstrap_tcp(lelts, lToxes, oArgs=None):
|
|||||||
if not oRet:
|
if not oRet:
|
||||||
LOG.warn(f'bootstrap_tcp failed to {host} : {oRet}')
|
LOG.warn(f'bootstrap_tcp failed to {host} : {oRet}')
|
||||||
elif hasattr(oTox, 'mycon_time') and oTox.mycon_time == 1:
|
elif hasattr(oTox, 'mycon_time') and oTox.mycon_time == 1:
|
||||||
LOG.info(f'bootstrap_tcp to {host} not yet connected last=1')
|
LOG.debug(f'bootstrap_tcp to {host} not yet connected last=1')
|
||||||
elif hasattr(oTox, 'mycon_status') and oTox.mycon_status is False:
|
elif hasattr(oTox, 'mycon_status') and oTox.mycon_status is False:
|
||||||
LOG.info(f'bootstrap_tcp to {host} not True' \
|
LOG.debug(f'bootstrap_tcp to {host} not True' \
|
||||||
+f" last={int(oTox.mycon_time)}" )
|
+f" last={int(oTox.mycon_time)}" )
|
||||||
elif oTox.self_get_connection_status() != enums.TOX_CONNECTION['NONE']:
|
elif oTox.self_get_connection_status() != enums.TOX_CONNECTION['NONE']:
|
||||||
LOG.info(f'bootstrap_tcp to {host} connected' )
|
LOG.info(f'bootstrap_tcp to {host} connected' \
|
||||||
|
+f" last={int(oTox.mycon_time)}" )
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
# LOG.debug(f'bootstrap_tcp to {host} but not connected'
|
# LOG.debug(f'bootstrap_tcp to {host} but not connected'
|
||||||
|
Loading…
Reference in New Issue
Block a user