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

Function complain_deprecated

plugins/libplugin.c:204–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static void complain_deprecated(const char *feature,
205 bool allowing,
206 struct command *cmd)
207{
208 if (!allowing) {
209 /* Mild log message for disallowing */
210 plugin_log(cmd->plugin, LOG_DBG,
211 "Note: disallowing deprecated %s for %s",
212 feature, cmd->id);
213 } else {
214 plugin_log(cmd->plugin, LOG_BROKEN,
215 "DEPRECATED API USED: %s by %s",
216 feature, cmd->id);
217 }
218}
219
220bool command_deprecated_in_named_ok(struct command *cmd,
221 const char *cmdname,

Callers

nothing calls this directly

Calls 1

plugin_logFunction · 0.70

Tested by

no test coverage detected