File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,9 @@ class ContextBase {
285285
286286 virtual void onCreate () {}
287287 virtual bool onDoneBase () = 0;
288+ // Called on Stream Context after onDone when logging is requested or called on Root Context
289+ // if so requested.
290+ virtual void onLog () {}
288291 // Called to indicate that no more calls will come and this context is being
289292 // deleted.
290293 virtual void onDelete () {} // Called when the stream or VM is being deleted.
@@ -476,7 +479,6 @@ class Context : public ContextBase {
476479 return FilterTrailersStatus::Continue;
477480 }
478481 virtual void onDone () {} // Called when the stream has completed.
479- virtual void onLog () {} // Called after onDone when logging is requested.
480482
481483private:
482484 // For stream Contexts, onDone always returns true.
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ extern "C" PROXY_WASM_KEEPALIVE uint32_t proxy_on_done(uint32_t context_id) {
227227}
228228
229229extern " C" PROXY_WASM_KEEPALIVE void proxy_on_log (uint32_t context_id) {
230- getContext (context_id)->onLog ();
230+ getContextBase (context_id)->onLog ();
231231}
232232
233233extern " C" PROXY_WASM_KEEPALIVE void proxy_on_delete (uint32_t context_id) {
You can’t perform that action at this time.
0 commit comments