Menu

#35 errors go to output stream instead of STDERR

0.13
closed-fixed
None
5
2020-12-30
2005-04-05
Kurt Keller
No

In our environment the output from init/compare/report must
go to STDOUT and will be processed later. Unfortunately any
errors go to the normal output stream tee and clobber
it up,
causing problems.

The attached patches, which take care of the problem in our
environment, rename the error routine orierror and create a
new error routine which sends error mesages to STDERR. The
calls to error in compare_db.c, which do not output
errors but
normal messages expected from compare, are adapted to
use orierror.

Please use the patches with care, I'm not familiar with
C. I
only know they do for us what we want them to do.

Discussion

  • Kurt Keller

    Kurt Keller - 2005-04-05
     
  • Kurt Keller

    Kurt Keller - 2005-04-05
     
  • Richard van den Berg

    • assigned_to: nobody --> rvdb
     
  • Richard van den Berg

    Logged In: YES
    user_id=330646

    I like the idea of seperating "normal" output and errors,
    but with -V255 everything is considered "normal" since you
    asked for it.

    Perhaps we should check which calls to error() are actually
    errors, and which are informational messages requested by
    setting the verbosity level.

     
  • Hannes von Haugwitz

    • status: open --> closed-fixed
    • Group: --> 0.13
     
  • Hannes von Haugwitz

    fixed (commit fd333074c5b084e1a363a15df23d355b784492df)

     

Log in to post a comment.

MongoDB Logo MongoDB