MCPcopy Create free account
hub / github.com/ElementsProject/lightning / log_error

Function log_error

plugins/wss-proxy-plugin/src/main.rs:168–175  ·  view source on GitHub ↗

Workaround: Using log crate right before plugin exit will not print */

(error: String)

Source from the content-addressed store, hash-verified

166
167/* Workaround: Using log crate right before plugin exit will not print */
168fn log_error(error: String) {
169 println!(
170 "{}",
171 serde_json::json!({"jsonrpc": "2.0",
172 "method": "log",
173 "params": {"level":"info", "message":error}})
174 );
175}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected