HelloZeroNet / HelloZeroNet/ZeroNet

python update.py or python2.update.py should have more verbose output

Offen
#1,265 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
JavaScript
Sterne
18.8k
Forks
2.3k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Step 1: Please describe your environment

* ZeroNet version: 0.6.1 r3229
* Operating system: Debian buster
* Web browser: 52.6.0
* Tor status: always
* Opened port: yes
* Special configuration: None

### Step 2: Describe the problem:

When I run python update.py at times I have to wait for a very long time to know why the update failed and sometimes even then don't really get the result which is just wastage of time.

#### Steps to reproduce:

1. Download the relevant .tar.gz version of zeronet
2. extract it in some directory, for e.g. I did it in games/Zeronet-master
3. go to the directory and do -
```
/home/shirish/games/ZeroNet-master> python update.py
Update site path: data/1UPDatEDxnvHDo7TXvq6AEBARfNkyfxsp, bad_files: 0
```
Both python and python2 are linked to Python 2.7.14+

The only way to get the new release is to get the newest tarball and extract it, no other way.

I also tried -

`python -v update.py` but it gets stuck at -

```
# /usr/lib/python2.7/Queue.pyc matches /usr/lib/python2.7/Queue.py
import Queue # precompiled from /usr/lib/python2.7/Queue.pyc
```

#### Observed Results:

* shared above.

#### Expected Results:

* I expected either of the two results -

result 1 - the software is updated
result 2 - an error shows up telling me what is wrong or at least gives me some inkling what is needed to be fixed but got no output so nothing to parse/understand.

Couple of links might be useful which I looked into -

https://stackoverflow.com/questions/14097061/easier-way-to-enable-verbose-logging

https://stackoverflow.com/questions/5980042/how-to-implement-the-verbose-or-v-option-into-a-script

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.