ZeroNetX / ZeroNet

ZeroNetX - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.dev
Other
212 stars 32 forks source link

--console_log_level does nothing? #166

Open slrslr opened 2 years ago

slrslr commented 2 years ago

Step 1: Please describe your environment

Step 2: Describe the problem:

python3 ./zeronet.py --help

shows:

  --console_log_level {default,DEBUG,INFO,ERROR,off}
                        Level of logging to console (default: default)

but when i use this in zeronet.conf or as a zeronet.py parameter, then it does not show any lines except two errors (regarding 3rd party plugins).

I expect to see verbose log when i use "python3 ./zeronet.py --console_log_level DEBUG" or line "console_log_level = DEBUG" in zeronet.conf

zeronet.conf contains also "log_level = off". If i set log_level to INFO, then console "log"/output starts showing log lines. I think this is confusing this console_log_level or its description.

By the way i think log level values should be case insensitive (INFO, ERROR...)