From bc354217600e7eb28bc112dd8386d244bf796229 Mon Sep 17 00:00:00 2001 From: emdee Date: Mon, 11 Dec 2023 18:59:03 +0000 Subject: [PATCH] fixes --- wrapper/toxav.py | 8 +++----- wrapper_tests/support_testing.py | 7 ++++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/wrapper/toxav.py b/wrapper/toxav.py index f9d35b9..8474acb 100644 --- a/wrapper/toxav.py +++ b/wrapper/toxav.py @@ -7,12 +7,10 @@ from typing import Union, Callable try: from wrapper.libtox import LibToxAV -#? from wrapper.toxencryptsave_enums_and_consts import * - import wrapper.toxencryptsave_enums_and_consts as enum + import wrapper.toxav_enums as enum except: - from wrapper.libtox import LibToxAV -#? from toxencryptsave_enums_and_consts import * - import toxencryptsave_enums_and_consts as enum + from libtox import LibToxAV + import toxav_enums as enum def LOG_ERROR(a: str) -> None: print('EROR> '+a) def LOG_WARN(a: str) -> None: print('WARN> '+a) diff --git a/wrapper_tests/support_testing.py b/wrapper_tests/support_testing.py index 3e92dde..714e103 100644 --- a/wrapper_tests/support_testing.py +++ b/wrapper_tests/support_testing.py @@ -856,12 +856,13 @@ def bootstrap_tcp(lelts, lToxes, oArgs=None): if not oRet: LOG.warn(f'bootstrap_tcp failed to {host} : {oRet}') 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: - LOG.info(f'bootstrap_tcp to {host} not True' \ + LOG.debug(f'bootstrap_tcp to {host} not True' \ +f" last={int(oTox.mycon_time)}" ) 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 else: # LOG.debug(f'bootstrap_tcp to {host} but not connected'