GUI applications writing garbage to stdout/stderr

Björn Persson Bjorn at xn--rombobjrn-67a.se
Wed Jan 14 23:16:13 UTC 2015


Alexander Ploumistos wrote:
>On Thu, Jan 15, 2015 at 12:09 AM, Björn Persson <Bjorn at rombobjörn.se>
>wrote:
>
>> Alexander Ploumistos wrote:
>> >On the other hand, if every message that was not meant for the user
>> >were suppressed, it would be very difficult to troubleshoot such a
>> >program, should an actual bug come along, because you would need a
>> >different build to get useful output in the console or a logging
>> >service.
>>
>> Nah, it takes only a command line parameter to turn on debug
>> logging. An environment variable could also be used. A different
>> build isn't needed. It's no harder to make logging conditional at
>> run time than it is to make it conditional at build time.
>
>The programs mentioned above do not have a debugging or verbosity flag,
>like e.g. "nmap -dd".

Do they have a build-time option to make the "different build" you
mentioned? If so, then that's the reason why they would be difficult to
troubleshoot if the messages were suppressed. The developers could
easily have made Marcel happy, and at the same time kept the programs
easy to debug, simply by making it a run-time option instead of a
build-time option.

If they don't have such a build-time option, then what I'm saying is
that if one were to suppress the messages, then one should do it with a
run-time option, not a build-time option. Then no different build would
be needed and debugging would be easy.

-- 
Björn Persson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signatur
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20150115/11bd3d54/attachment.sig>


More information about the devel mailing list