INFO events are written to ~/.xsession-errors #7156

Open
opened 2021-09-22 18:31:18 +02:00 by dabruh · 2 comments
dabruh commented 2021-09-22 18:31:18 +02:00 (Migrated from github.com)

Bug
Quite a lot of INFO events are written to ~/.xsession-errors - ledger and download progress among other. E.g:

Daemon: 2021-09-22 18:12:41,783 INFO     lbry.wallet.ledger:150: lbc_mainnet: added BlockHeightEvent(height=1033294, change=1) header blocks, final height 1033294
Daemon: 2021-09-22 18:12:49,501 INFO     lbry.wallet.ledger:150: lbc_mainnet: added BlockHeightEvent(height=1033295, change=1) header blocks, final height 1033295

To Reproduce
No clue...

Expected behavior
~/.xsession-errors should only contain errors.

Screenshots
If applicable, add screenshots to help explain your problem.

System Configuration

  • LBRY Daemon version: 0.99.0
  • LBRY App version: 0.51.2
  • LBRY Installation ID:
  • Operating system: 5.13.12-1-MANJARO

Installed from https://aur.archlinux.org/packages/lbry-desktop-git/

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-desktop/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on live chat at https://chat.lbry.com --> **Bug** Quite a lot of INFO events are written to ~/.xsession-errors - ledger and download progress among other. E.g: ```log Daemon: 2021-09-22 18:12:41,783 INFO lbry.wallet.ledger:150: lbc_mainnet: added BlockHeightEvent(height=1033294, change=1) header blocks, final height 1033294 Daemon: 2021-09-22 18:12:49,501 INFO lbry.wallet.ledger:150: lbc_mainnet: added BlockHeightEvent(height=1033295, change=1) header blocks, final height 1033295 ``` **To Reproduce** No clue... **Expected behavior** `~/.xsession-errors` should only contain errors. **Screenshots** If applicable, add screenshots to help explain your problem. **System Configuration** <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: 0.99.0 - LBRY App version: 0.51.2 - LBRY Installation ID: - Operating system: 5.13.12-1-MANJARO Installed from https://aur.archlinux.org/packages/lbry-desktop-git/
tzarebczan commented 2021-09-23 02:41:06 +02:00 (Migrated from github.com)

Looks like this may be where the electron based app is putting all it's logging - we'd need to find out why that is for the arch case. Thanks for opening and sorry about the issue!

Looks like this may be where the electron based app is putting all it's logging - we'd need to find out why that is for the arch case. Thanks for opening and sorry about the issue!
jessopb commented 2022-07-12 23:26:15 +02:00 (Migrated from github.com)

in electron/daemon.js
this.subprocess.stderr.on('data', data => console.error(Daemon: ${data}));
The sdk outputs almost everything on stderr, and that's piped to the app.

in electron/daemon.js ` this.subprocess.stderr.on('data', data => console.error(`Daemon: ${data}`));` The sdk outputs almost everything on stderr, and that's piped to the app.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#7156
No description provided.