[Extractor] Improve commandline debugging, forward stderr
ClosedPublic

Authored by bruns on Oct 17 2018, 1:56 AM.

Details

Summary

In case baloo_file is started from an interactive shell/tty, the debug
output no longer goes to the syslog/journal, but to stderr. Make sure
stderr does not end up in the stdin of the parent process but is forwarded.

Test Plan

start baloo_file from the shell, with debugging enabled:
QT_LOGGING_RULES='org.kde.baloo=true' PATH=./bin ./bin/baloo_file
-> debug output from the extractor appears on stderr

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Oct 17 2018, 1:56 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptOct 17 2018, 1:56 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Oct 17 2018, 1:56 AM
ngraham accepted this revision.Oct 17 2018, 1:59 AM

Yep, nice.

This revision is now accepted and ready to land.Oct 17 2018, 1:59 AM
This revision was automatically updated to reflect the committed changes.