Mercurial > urweb
diff src/c/urweb.c @ 2143:4895c41b2ec6
Make naughtyDebug use protocol-specific logging
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 10 May 2015 12:13:12 -0400 |
parents | 882556b3029d |
children | 8a01e8f21de9 2b1af5dc6dee |
line wrap: on
line diff
--- a/src/c/urweb.c Mon May 04 14:35:07 2015 -0400 +++ b/src/c/urweb.c Sun May 10 12:13:12 2015 -0400 @@ -4220,7 +4220,10 @@ size_t uw_database_max = SIZE_MAX; uw_Basis_int uw_Basis_naughtyDebug(uw_context ctx, uw_Basis_string s) { - fprintf(stderr, "%s\n", s); + if (ctx->loggers->log_debug) + ctx->loggers->log_debug(ctx->loggers->logger_data, "%s\n", s); + else + fprintf(stderr, "%s\n", s); return 0; }