Menu

#1340 MsgUtils reports all syslog entries as error

2.6
closed
General (881)
5
2012-09-19
2010-08-26
No

I code xCAT::MsgUtils->message("SI", "Running su - xcatdb -c $cmd ");

But in syslog I get
c68m4mn11 local4:err|error xCAT: Running su - xcatdb -c ' db2 -tvf /tmp/lissa.sql.tmp 2>&1'

Should not come in as a error. This can be either in 2.5.1 or 2.6 Been this way a long time. Also see, everything seems to be reported as an error.
c68m4mn11 local4:err|error xCAT: xCATd: service starting

Discussion

  • Guang Cheng Li

    Guang Cheng Li - 2010-08-30

    HI Lissa,

    I am not sure if we should do this, I guess the intention of the MsgUtils->message("S" ...) is to log the severe problems of xCAT into syslog, if this is only an informational or warning message, we probably should not redirect it to syslog, it will cause a lot of xCAT syslog entries to be written to syslog, especially when the informational/warning messages come from the compute nodes syslog redirection.

    It is a compromise on how many xCAT messages should be redirected to syslog, most of the messages can be written into xCAT log files, but unfortunately xCAT does not have well-organized log files(/var/log/xcat/xcat.log is for the postscripts on compute nodes), maybe we should consider adding some xCAT log files...

     
  • Lissa Valletta

    Lissa Valletta - 2010-09-24

    If SE not input to MsgUtils then it is sysloged as info not error.
    Committed revision 7605

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 28 days (the time period specified by
    the administrator of this Tracker).

     
MongoDB Logo MongoDB