decentraland / bronzeage-node

DEPRECATED: This codebase will not be mantained anymore, and formats are going to change when we move to the Decentraland Iron Age
https://decentraland.org
Other
104 stars 22 forks source link

Provide some user-friendly indication of what is happening and remove debug statements by default #49

Open stefek99 opened 7 years ago

stefek99 commented 7 years ago

I've just wanted to start the app.

image

I'm waiting and waiting, the only thing that I see is:

[info]
[debug]
[debug]

I don't know what is really happening - do I have to wait much longer?

Also see the bouncing icon - animated GIF below - what is happening?

is electron app starting


To provide nice initialisation screen and remove debugging statements by default it would be much more user friendly.

stefek99 commented 7 years ago

sh start.sh > stdout.txt 2> stderr.txt

Some of my logs: https://gist.github.com/stefek99/81645852e59e9dcfb859fe73df57db3e

KurzGedanke commented 7 years ago

The bouncing little icons are again webtorrent-hybrid which spawns again. Remove the -hybrid from the require('webtorrent-hybrid') in the contentdb.js file.

And the bronze age is more a proof of concept than a polished finished product, in my opinion the debug logs are very import.

ghost commented 7 years ago

+1 to keeping the debug logs for now. It's early stage so developer support is higher priority than user friendliness.

stefek99 commented 7 years ago

developer support is higher priority than user friendliness

@berrycoiled agreed

martriay commented 7 years ago

+1 @KurzGedanke and @berrycoiled

stefek99 commented 7 years ago

I'd prefer Quake like press ' or some magic key...

I didn't know what is happening, what is important, is it still loading...

Furthermore - the Electron torrent app - and dock icon going crazy..

First impression - opened 7 Github issues (one immediately closed as duplicate)

If node by default starts in mining mode, then maybe show the hashes, network difficulty, probability, some super basic dashboard, keep it Electron app and maybe the Torrent will not be opening the thing...

And then the magic ' key to display debugging console.

This is an additional feature, set up a bounty - https://github.com/aragon/aragon-core/labels/bounty - allow members of the community to implement.

KurzGedanke commented 7 years ago

The thing is... the electron spawn are a... I think you may call them bugs. Some machines are working better with webtorrent other with webtorrent-hybrid. So it depends.

And... the miner show mining information:

[info] Miner: hashrate=452khs hashes=8589933 target=503382015 height=130493 best=00000006540e54ed329e9719cd15a91b9765e507e4f4d340c313c0dac6153652
stefek99 commented 7 years ago

maybe show the hashes, network difficulty, probability, some super basic dashboard

[info] Miner: hashrate=452khs hashes=8589933 target=503382015 height=130493 best=00000006540e54ed329e9719cd15a91b9765e507e4f4d340c313c0dac6153652

YEAH... Basic chart... I'm just a human, when I see long line full of digits it's not that easy to make sense of it.