From 547ffde58ad9520978cfe9ad0af18e6b618e40ea Mon Sep 17 00:00:00 2001 From: fang Date: Tue, 8 Dec 2020 13:58:01 +0100 Subject: [PATCH] vere: call webslog callback from flog directly Instead of going through the slog callback, which re-prints. --- pkg/urbit/vere/lord.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/urbit/vere/lord.c b/pkg/urbit/vere/lord.c index 533bc5cc45..b910da1fd3 100644 --- a/pkg/urbit/vere/lord.c +++ b/pkg/urbit/vere/lord.c @@ -366,6 +366,8 @@ _lord_plea_slog(u3_lord* god_u, u3_noun dat) static void _lord_plea_flog(u3_lord* god_u, u3_noun dat) { + u3_pier* pir_u = god_u->cb_u.ptr_v; + if ( c3n == u3a_is_atom(dat) ) { return _lord_plea_foul(god_u, c3__flog, dat); } @@ -374,7 +376,10 @@ _lord_plea_flog(u3_lord* god_u, u3_noun dat) u3C.stderr_log_f(tan_c); c3_free(tan_c); - god_u->cb_u.slog_f(god_u->cb_u.ptr_v, 0, dat); + if ( 0 != pir_u->sog_f ) { + pir_u->sog_f(pir_u->sop_p, 0, u3k(dat)); + } + u3z(dat); } /* _lord_plea_peek_bail(): hear serf %peek %bail