| 1037 | }; |
| 1038 | |
| 1039 | static void complain_deprecated(const char *feature, |
| 1040 | bool allowing, |
| 1041 | struct depr_in *depr_in) |
| 1042 | { |
| 1043 | if (!allowing) { |
| 1044 | /* Mild log message for disallowing */ |
| 1045 | log_debug(depr_in->log, "Note: disallowing deprecated %s", feature); |
| 1046 | } else { |
| 1047 | log_broken(depr_in->log, |
| 1048 | "DEPRECATED API USED %s %s", |
| 1049 | feature, |
| 1050 | depr_in->details ? depr_in->details : ""); |
| 1051 | } |
| 1052 | } |
| 1053 | |
| 1054 | /* Do we accept this? */ |
| 1055 | bool lightningd_deprecated_in_ok(struct lightningd *ld, |
nothing calls this directly
no outgoing calls
no test coverage detected