From cc5f2b888ebeb60718e27f0b2e97fd57633508b3 Mon Sep 17 00:00:00 2001 From: emdee Date: Sun, 25 Sep 2022 07:24:29 +0000 Subject: [PATCH] minor update --- README.md | 2 ++ logging_tox_savefile.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f2f918..ab20441 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ Just put the toxygen/toxygen directory on your PYTHONPATH You also need to link your libtoxcore.so and libtoxav.so and libtoxencryptsave.so into toxygen/toxygen/libs/ Link all 3 from libtoxcore.so files if you have only libtoxcore.so +There is an updated and bugfixed version in: + If you want to read the GROUPS section, you need Python msgpack: diff --git a/logging_tox_savefile.py b/logging_tox_savefile.py index e78de6e..e64146e 100644 --- a/logging_tox_savefile.py +++ b/logging_tox_savefile.py @@ -236,7 +236,7 @@ The integers in this structure are stored in Big Endian format. assert len(mod_list) == 2, mod_list num_moderators = mod_list[0] - LOG.info(f"{dSTATE_TYPE[data_type]} #{i} num moderators={mod_list[0]}") + LOG.debug(f"{dSTATE_TYPE[data_type]} #{i} num moderators={mod_list[0]}") #define CRYPTO_SIGN_PUBLIC_KEY_SIZE 32 mods = mod_list[1] assert len(mods) % 32 == 0, len(mods) @@ -246,7 +246,7 @@ The integers in this structure are stored in Big Endian format. LOG.info(f"{dSTATE_TYPE[data_type]} group#{i} mod#{j} sig_pk={bin_to_hex(mod)}") assert len(keys) == 4, keys - LOG.info(f"{dSTATE_TYPE[data_type]} #{i} {repr(list(map(len, keys)))}") + LOG.debug(f"{dSTATE_TYPE[data_type]} #{i} {repr(list(map(len, keys)))}") chat_public_key, chat_secret_key, self_public_key, self_secret_key = keys LOG.info(f"{dSTATE_TYPE[data_type]} #{i} chat_public_key={bin_to_hex(chat_public_key)}") if int(bin_to_hex(chat_secret_key), 16) != 0: