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

Function log_error

plugins/wss-proxy-plugin/src/main.rs:212–219  ·  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

210
211/* Workaround: Using log crate right before plugin exit will not print */
212fn log_error(error: String) {
213 println!(
214 "{}",
215 serde_json::json!({"jsonrpc": "2.0",
216 "method": "log",
217 "params": {"level":"info", "message":error}})
218 );
219}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected