the panic log

Add an optional paniclog file, controlled by a new PANICLOG macro that can
be used to log all panic and impossible messages.  Helpful when people
forget to send, or didn't see, the message.
This commit is contained in:
cohrs
2002-06-02 18:49:18 +00:00
parent ba734ebfa1
commit 2e2ce4effa
6 changed files with 35 additions and 3 deletions

View File

@@ -294,6 +294,7 @@ panic VA_DECL(const char *, str)
char buf[BUFSZ];
Vsprintf(buf,str,VA_ARGS);
raw_print(buf);
paniclog("panic", buf);
}
#if defined(WIZARD) && (defined(UNIX) || defined(VMS) || defined(LATTICE) || defined(WIN32))
if (wizard)