| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: Vikas Choudhary <choudharyvikas16@gmail.com>
| if (e.first == dest.value()) { | ||
| // write message to the file which is the value of the key if it exists | ||
| std::ofstream log_file; | ||
| log_file.open(e.second, std::ios::out | std::ios_base::app); |
There was a problem hiding this comment.
IMHO, this should be done on the proxy-side, so that it can use optimized logging facilities (if they exist), work with sandboxing, etc.
Basically, this whole block could be replaced with:
context->log_with_destination(level, message.value(), dest.value());
Sorry, something went wrong.
There was a problem hiding this comment.
updated, thanks!
Sorry, something went wrong.
| if (!dest) { | ||
| return WasmResult::InvalidMemoryAccess; | ||
| } | ||
| context->log(level, dest.value()); |
There was a problem hiding this comment.
Debug leftover?
Sorry, something went wrong.
There was a problem hiding this comment.
yes. thanks for catching
Sorry, something went wrong.
Signed-off-by: Vikas Choudhary <choudharyvikas16@gmail.com>
| Back | FazBrowse Home | New Git URL |
Implements proxy-wasm/spec#38.
@PiotrSikora @mathetake @anuraaga please see if going in right direction overall. Will add unit tests once confirmed.
I have tested the changes manually. Related changes in envoy, envoyproxy/envoy#26364
xref: envoyproxy/envoy#22669