From b55a4c91c49380eef543df6a939b49755a0b6f09 Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Wed, 11 May 2011 18:16:05 -0400 Subject: [PATCH] Moved log_all event until AFTER logs --- src/log.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/log.c b/src/log.c index 4ec8e8b..a48e867 100644 --- a/src/log.c +++ b/src/log.c @@ -242,14 +242,15 @@ do_rawlog(int logtype, const char *fmt, ...) f = stderr; break; } - if((chook = (struct core_hook_t *) hashfind("LOG_ALL.AFTER", &chook_htab))) { - for(centry = chook->hooks; centry != NULL ; centry = centry->next) - CHook_Run(centry, "%# %d %s", global_eval_context.cplr, logtype, tbuf1); - } lock_file(f); fprintf(f, "%s %s\n", timebuf, tbuf1); fflush(f); unlock_file(f); + if((chook = (struct core_hook_t *) hashfind("LOG_ALL.AFTER", &chook_htab))) { + for(centry = chook->hooks; centry != NULL ; centry = centry->next) + CHook_Run(centry, "%# %d %s", global_eval_context.cplr, logtype, tbuf1); + } + } /** Log a message, with useful information. -- 2.30.2