Yet, it is strange.
Even stranger, I actually documented it :)
Quoting Ubic::Logger POD:
=item B<ERROR(@data)>
Log some error.
Message will be red if writing to terminal, and will be duplicated into both stdout and stderr otherwise.
This behavoir is an echo of our in-house policy about logging errors to stdout to be able to see them in context.
There is not much sense to follow this policy in ubic, so I think i'll change ERROR to write messages only to stdout (only difference between ERROR and INFO will be in color when printing to terminal).
Simply because only ubic-watchdog and ubic-portmap are using this ERROR function, and ubic-watchdog only prints anything when there is something wrong in other services, not in watchdog itself, and ubic-portmap... well, nobody actually cares about ubic-portmap :)
.. # several hours later
Actually, I just uploaded Ubic=1.11 with these changes.
The policy your are talking about is a smart thing, but, as you said,
when there is only stderr stream it makes no sense.
Thank you for the extremely fast solution =)
2010/8/26 Матюхин Вячеслав <m...@berekuk.ru>: