On 2008-06-20T07:18:55, Joe Bill <[EMAIL PROTECTED]> wrote: > In /etc/ha.d/shellfuncs.sh, as part of ha_log(), we have the following > sequence: > > >if > > [ -n "$HA_LOGFILE" ] > > then > > : appending to $HA_LOGFILE > > Echo "$HA_LOGTAG: "`hadate`"${*}" >> $HA_LOGFILE > > else > > Echo `hadate`"${*}" >&2 > >fi > >if > > [ -n "$HA_DEBUGLOG" ] > > then > > : appending to $HA_DEBUGLOG > > Echo "$HA_LOGTAG: "`hadate`"${*}" >> $HA_DEBUGLOG > >fi > > > > If a ***same*** log entry ( that is, a message passed to ha_log() just > ***once***, to be processed just ***once***, ha_log() being called just > once*** ), is to be written in 2 different files as above, wouldn't the least > be that same entry carry the ***same date/time***, whatever the file it is > written to and regardless the number of times it is written down, instead of > recalculating the date/time each time the same log entry is written down ?
Sure. The date should be calculated just once. Keep in mind that this is legacy though. Anybody found to not be using logd should be taken out and educated. If anything, what I'd like even more to see is automatically defaulting to the Linux-HA logging relay daemon ;-), and if that's not configured explicitly but debuglog and logfile are, to auto-feed these to the logging system configuration. Nobody should not be using the logging daemon. Regards, Lars -- Teamlead Kernel, SuSE Labs, Research and Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) "Experience is the name everyone gives to their mistakes." -- Oscar Wilde _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/