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 {
285
285
286
286
virtual void onCreate () {}
287
287
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 () {}
288
291
// Called to indicate that no more calls will come and this context is being
289
292
// deleted.
290
293
virtual void onDelete () {} // Called when the stream or VM is being deleted.
@@ -476,7 +479,6 @@ class Context : public ContextBase {
476
479
return FilterTrailersStatus::Continue;
477
480
}
478
481
virtual void onDone () {} // Called when the stream has completed.
479
- virtual void onLog () {} // Called after onDone when logging is requested.
480
482
481
483
private:
482
484
// 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) {
227
227
}
228
228
229
229
extern " C" PROXY_WASM_KEEPALIVE void proxy_on_log (uint32_t context_id) {
230
- getContext (context_id)->onLog ();
230
+ getContextBase (context_id)->onLog ();
231
231
}
232
232
233
233
extern " C" PROXY_WASM_KEEPALIVE void proxy_on_delete (uint32_t context_id) {
You can’t perform that action at this time.
0 commit comments