- bend the rules slightly so that panics get printed all the time, even
if the user tried to set action=ignore.
This commit is contained in:
parent
e5d9cea3a9
commit
5ebae91ac4
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: logio.cc,v 1.8 2001-10-06 05:51:34 bdenney Exp $
|
||||
// $Id: logio.cc,v 1.9 2001-10-06 14:36:00 bdenney Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -307,7 +307,9 @@ logfunctions::panic(char *fmt, ...)
|
||||
assert (this != NULL);
|
||||
assert (this->logio != NULL);
|
||||
|
||||
if(!onoff[LOGLEV_PANIC]) return;
|
||||
// Special case for panics since they are so important. Always print
|
||||
// the panic to the log, no matter what the log action says.
|
||||
//if(!onoff[LOGLEV_PANIC]) return;
|
||||
|
||||
va_start(ap, fmt);
|
||||
this->logio->out(this->type,LOGLEV_PANIC,this->prefix, fmt, ap);
|
||||
|
Loading…
Reference in New Issue
Block a user