Skip to content

Implement proper logging over the programm

I think we should start using python (excelent) logging module:

https://docs.python.org/3/howto/logging.html#a-simple-example

For example silkaj/network_tools.py : line 153

just import logging at the begining of the file, then here call:

logging.error("Port must be an integer")

With this, we well be able to use a -v verbose switch on the CLI later ;-) This will add/remove the "debug" messages for example when silkaj query g1.duniter.org. So you can remove the clear command to display only usefull information.

And once we have that, we will be able to add json/csv switch to format output and open the way to new script usage with silkaj 👓


Edited by Moul
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information