@@ -812,6 +812,8 @@ static struct command_result *json_getroutes(struct command *cmd,
812
812
maxdelay_allowed ),
813
813
NULL ))
814
814
return command_param_failed ();
815
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
816
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
815
817
816
818
if (amount_msat_is_zero (* info -> amount )) {
817
819
return command_fail (cmd , JSONRPC2_INVALID_PARAMS ,
@@ -857,6 +859,8 @@ static struct command_result *json_askrene_reserve(struct command *cmd,
857
859
p_req ("path" , param_reserve_path , & path ),
858
860
NULL ))
859
861
return command_param_failed ();
862
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
863
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
860
864
861
865
for (size_t i = 0 ; i < tal_count (path ); i ++ )
862
866
reserve_add (askrene -> reserved , & path [i ], cmd -> id );
@@ -877,6 +881,8 @@ static struct command_result *json_askrene_unreserve(struct command *cmd,
877
881
p_req ("path" , param_reserve_path , & path ),
878
882
NULL ))
879
883
return command_param_failed ();
884
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
885
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
880
886
881
887
for (size_t i = 0 ; i < tal_count (path ); i ++ ) {
882
888
if (!reserve_remove (askrene -> reserved , & path [i ])) {
@@ -901,6 +907,8 @@ static struct command_result *json_askrene_listreservations(struct command *cmd,
901
907
if (!param (cmd , buffer , params ,
902
908
NULL ))
903
909
return command_param_failed ();
910
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
911
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
904
912
905
913
response = jsonrpc_stream_success (cmd );
906
914
json_add_reservations (response , askrene -> reserved , "reservations" );
@@ -925,6 +933,8 @@ static struct command_result *json_askrene_create_channel(struct command *cmd,
925
933
p_req ("capacity_msat" , param_msat , & capacity ),
926
934
NULL ))
927
935
return command_param_failed ();
936
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
937
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
928
938
929
939
if (layer_find_local_channel (layer , * scid )) {
930
940
return command_fail (cmd , JSONRPC2_INVALID_PARAMS ,
@@ -963,6 +973,8 @@ static struct command_result *json_askrene_update_channel(struct command *cmd,
963
973
p_opt ("cltv_expiry_delta" , param_u16 , & delay ),
964
974
NULL ))
965
975
return command_param_failed ();
976
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
977
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
966
978
967
979
layer_add_update_channel (layer , scidd ,
968
980
enabled ,
@@ -1017,6 +1029,8 @@ static struct command_result *json_askrene_inform_channel(struct command *cmd,
1017
1029
p_req ("inform" , param_inform , & inform ),
1018
1030
NULL ))
1019
1031
return command_param_failed ();
1032
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
1033
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
1020
1034
1021
1035
switch (* inform ) {
1022
1036
case INFORM_CONSTRAINED :
@@ -1092,6 +1106,8 @@ static struct command_result *json_askrene_bias_channel(struct command *cmd,
1092
1106
p_opt ("description" , param_string , & description ),
1093
1107
NULL ))
1094
1108
return command_param_failed ();
1109
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
1110
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
1095
1111
1096
1112
b = layer_set_bias (layer , scidd , description , * bias );
1097
1113
response = jsonrpc_stream_success (cmd );
@@ -1115,6 +1131,8 @@ static struct command_result *json_askrene_disable_node(struct command *cmd,
1115
1131
p_req ("node" , param_node_id , & node ),
1116
1132
NULL ))
1117
1133
return command_param_failed ();
1134
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
1135
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
1118
1136
1119
1137
/* We save this in the layer, because they want us to disable all the channels
1120
1138
* to the node at *use* time (a new channel might be gossiped!). */
@@ -1139,6 +1157,8 @@ static struct command_result *json_askrene_create_layer(struct command *cmd,
1139
1157
p_opt_def ("persistent" , param_bool , & persistent , false),
1140
1158
NULL ))
1141
1159
return command_param_failed ();
1160
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
1161
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
1142
1162
1143
1163
if (strstarts (layername , "auto." ))
1144
1164
return command_fail (cmd , JSONRPC2_INVALID_PARAMS ,
@@ -1173,6 +1193,8 @@ static struct command_result *json_askrene_remove_layer(struct command *cmd,
1173
1193
p_req ("layer" , param_known_layer , & layer ),
1174
1194
NULL ))
1175
1195
return command_param_failed ();
1196
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
1197
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
1176
1198
1177
1199
remove_layer (layer );
1178
1200
@@ -1192,6 +1214,8 @@ static struct command_result *json_askrene_listlayers(struct command *cmd,
1192
1214
p_opt ("layer" , param_known_layer , & layer ),
1193
1215
NULL ))
1194
1216
return command_param_failed ();
1217
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
1218
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
1195
1219
1196
1220
response = jsonrpc_stream_success (cmd );
1197
1221
json_add_layers (response , askrene , "layers" , layer );
@@ -1212,6 +1236,8 @@ static struct command_result *json_askrene_age(struct command *cmd,
1212
1236
p_req ("cutoff" , param_u64 , & cutoff ),
1213
1237
NULL ))
1214
1238
return command_param_failed ();
1239
+ plugin_log (cmd -> plugin , LOG_TRACE , "%s called: %.*s" , __func__ ,
1240
+ json_tok_full_len (params ), json_tok_full (buffer , params ));
1215
1241
1216
1242
num_removed = layer_trim_constraints (layer , * cutoff );
1217
1243
0 commit comments