vere: call webslog callback from flog directly

Instead of going through the slog callback, which re-prints.
This commit is contained in:
fang 2020-12-08 13:58:01 +01:00
parent c72c29a588
commit 547ffde58a
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -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