OpenChartProject / OpenChart

✨ NEW REPO ✨ https://github.com/OpenChartProject/OpenChart-web
https://github.com/OpenChartProject/OpenChart-web
Other
8 stars 3 forks source link

Capture stderr and log as error #69

Closed Kangaroux closed 3 years ago

Kangaroux commented 4 years ago

📖 Overview

The external libraries like libbass and Gtk write to stderr. If possible it would be nice to capture that output so we can log it. Otherwise you can only see the output in the console.

📄 Example

libbass gives a device error when you try to start the app through vscode:

[19:15:47.866 INF] ------------------------
[19:15:47.911 INF] Initializing...
[19:15:47.911 DBG] Set current directory to /home/jessie/Code/projects/OpenChart/bin
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
[19:15:47.946 FTL] Failed to initialize libbass. (Driver, code = Driver)
Kangaroux commented 3 years ago

No longer needed