2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-25 09:14:05 +00:00
Commit Graph

12 Commits

Author SHA1 Message Date
Bin Xu 1c1eace773 Recording the Severity of log message into xCAT logs (#5267)
- modify rsyslog conf and add "%syslogseverity-text:::uppercase%" to input the text Severity
 - remove duplicate Severity in log message
 - modify MsgUtils::trace for better performance and code structure
2018-06-05 17:57:55 +08:00
Gᴏɴɢ Jie 5e5dbf886f Avoid log compute node logs to other log files (#4995) 2018-03-28 16:19:08 +08:00
Bin Xu cb25622331 It is for provision log enhancement and partial address #4582 (#4648)
- clear logs in the key components during provisioning (not only debug mode, but debug mode will have more logs)
 - now only cover rhel7 stateful and stateless
 - make more syslogs into cluster.log (tag = xcat or xcat.*)
 - the changes will not impact other distro
2018-01-23 03:20:42 -06:00
Sebastian Thorarensen fc58a8e872 Do not comment out rsyslog /var/log/messages on MN (#4527)
Since commit 1219fdd23f, the rsyslog rule
"*.debug /var/log/messages" is no longer added to rsyslog.conf on the
MN. However, any rule ending with "/var/log/messages" is still commented
out. This leads to xCAT removing all output to /var/log/messages, except
for the daemon and ftp facilities that are enabled by
/etc/rsyslog.d/xcat-debug.conf!

This commit
 - stops commenting out rules ending with "/var/log/messages" in
   rsyslog.conf
 - stops adding adding the comment "#*.debug /var/log/messages" to
   rsyslog.conf
 - changes "daemon.debug" to "daemon.=debug" in xcat-debug.conf to avoid
   duplicate daemon log lines with most Linux distributions' default
   rsyslog.conf.

The 'ftp.* rule in xcat-debug.conf is possibly no longer needed, and
will lead to duplicate ftp messages with most distributions, but it is
left untouched in this commit.
2018-01-10 21:00:59 -06:00
GONG Jie 810dc8730a Log tftp logs to /var/log/messages 2016-05-11 15:33:32 +08:00
GONG Jie 395ca69042 Fix github issue #989, put the log of DHCP back to /var/log/messages 2016-04-29 16:36:06 +08:00
GONG Jie b08166fec2 Check if the pid files exist 2015-11-06 13:45:25 +08:00
GONG Jie 8f8cf2ecfc Fix logrotate for Ubuntu. For rsyslogd in Ubuntu, there is a different pid file. 2015-11-06 13:31:51 +08:00
GONG Jie ae418d8b11 Send signal HUP to xCAT command log writer while log rotate 2015-09-21 17:24:42 +08:00
GONG Jie aea4450ffe Use :fromhost-ip to separate logs from other hosts 2015-09-21 14:21:32 +08:00
GONG Jie f0ea93b2f8 Use :programname as the filter for the logs 2015-09-21 14:21:32 +08:00
GONG Jie bf04dd3a4b Add new configuration files for rsyslog and logrotate 2015-09-21 14:21:32 +08:00