@@ -89,7 +89,6 @@ func (c Client) Account(ctx context.Context, addr []byte) (*entities.Account, er
89
89
trace .EndSpanErr (span , err )
90
90
return nil , err
91
91
}
92
- log .Debugf ("AccessAPI.Account(%a): %r" , addr , resp .Account )
93
92
trace .EndSpanOk (span )
94
93
return resp .Account , nil
95
94
}
@@ -116,7 +115,6 @@ func (c Client) AccountAtHeight(ctx context.Context, addr []byte, height uint64)
116
115
trace .EndSpanErr (span , err )
117
116
return nil , err
118
117
}
119
- log .Debugf ("AccessAPI.AccountAtHeight(%a): %r" , addr , resp .Account )
120
118
trace .EndSpanOk (span )
121
119
return resp .Account , nil
122
120
}
@@ -137,7 +135,6 @@ func (c Client) BlockByHeight(ctx context.Context, height uint64) (*entities.Blo
137
135
trace .EndSpanErr (span , err )
138
136
return nil , err
139
137
}
140
- log .Debugf ("AccessAPI.BlockByHeight(%a): %b" , height , resp .Block )
141
138
trace .EndSpanOk (span )
142
139
return resp .Block , nil
143
140
}
@@ -158,7 +155,6 @@ func (c Client) BlockByID(ctx context.Context, blockID []byte) (*entities.Block,
158
155
trace .EndSpanErr (span , err )
159
156
return nil , err
160
157
}
161
- log .Debugf ("AccessAPI.BlockByID(%a): %b" , blockID , resp .Block )
162
158
trace .EndSpanOk (span )
163
159
return resp .Block , nil
164
160
}
@@ -185,7 +181,6 @@ func (c Client) BlockEvents(ctx context.Context, blockID []byte, typ string) ([]
185
181
trace .EndSpanErr (span , err )
186
182
return nil , err
187
183
}
188
- log .Debugf ("AccessAPI.BlockEvents(): %a\n %b" , blockID , resp .Results )
189
184
trace .EndSpanOk (span )
190
185
191
186
return resp .Results [0 ].Events , nil
@@ -206,7 +201,6 @@ func (c Client) BlockHeaderByHeight(ctx context.Context, height uint64) (*entiti
206
201
trace .EndSpanErr (span , err )
207
202
return nil , err
208
203
}
209
- log .Debugf ("AccessAPI.BlockHeaderByHeight(%a): %b" , height , resp .Block )
210
204
trace .EndSpanOk (span )
211
205
return resp .Block , nil
212
206
}
@@ -226,7 +220,6 @@ func (c Client) BlockHeaderByID(ctx context.Context, blockID []byte) (*entities.
226
220
trace .EndSpanErr (span , err )
227
221
return nil , err
228
222
}
229
- log .Debugf ("AccessAPI.BlockHeaderByID(%a): %b" , blockID , resp .Block )
230
223
trace .EndSpanOk (span )
231
224
return resp .Block , nil
232
225
}
@@ -247,7 +240,6 @@ func (c Client) CollectionByID(ctx context.Context, id []byte) (*entities.Collec
247
240
trace .EndSpanErr (span , err )
248
241
return nil , err
249
242
}
250
- log .Debugf ("AccessAPI.CollectionByID(%a): %b" , id , resp .Collection )
251
243
trace .EndSpanOk (span )
252
244
return resp .Collection , nil
253
245
}
@@ -269,6 +261,7 @@ func (c Client) Execute(ctx context.Context, blockID []byte, script []byte, args
269
261
cargs [i ] = val
270
262
}
271
263
ctx , cancel := context .WithTimeout (ctx , defaultTimeout )
264
+ log .Debugf ("AccessAPI.Execute(): %s" , string (script ))
272
265
resp , err := c .client .ExecuteScriptAtBlockID (
273
266
ctx ,
274
267
& access.ExecuteScriptAtBlockIDRequest {
@@ -291,7 +284,6 @@ func (c Client) Execute(ctx context.Context, blockID []byte, script []byte, args
291
284
trace .EndSpanErr (span , err )
292
285
return nil , err
293
286
}
294
- log .Debugf ("AccessAPI.Execute(): %a = %b" , blockID , val )
295
287
trace .EndSpanOk (span )
296
288
return val , nil
297
289
}
@@ -311,7 +303,6 @@ func (c Client) ExecutionResultForBlockID(ctx context.Context, blockID []byte) (
311
303
trace .EndSpanErr (span , err )
312
304
return nil , err
313
305
}
314
- log .Debugf ("AccessAPI.ExecutionResultForBlockID(): %a" , resp .ExecutionResult )
315
306
trace .EndSpanOk (span )
316
307
return resp .ExecutionResult , nil
317
308
}
@@ -333,7 +324,6 @@ func (c Client) LatestBlockHeader(ctx context.Context) (*entities.BlockHeader, e
333
324
return nil , err
334
325
}
335
326
336
- log .Debugf ("AccessAPI.LatestBlockHeader(): %b" , resp .Block )
337
327
trace .EndSpanOk (span )
338
328
return resp .Block , nil
339
329
}
@@ -354,7 +344,6 @@ func (c Client) LatestFinalizedBlockHeader(ctx context.Context) (*entities.Block
354
344
trace .EndSpanErr (span , err )
355
345
return nil , err
356
346
}
357
- log .Debugf ("AccessAPI.LatestFinalizedBlockHeader(): %b" , resp .Block )
358
347
trace .EndSpanOk (span )
359
348
return resp .Block , nil
360
349
}
@@ -386,7 +375,7 @@ func (c *Client) SendTransaction(ctx context.Context, txn *entities.Transaction)
386
375
trace .EndSpanErr (span , err )
387
376
return nil , err
388
377
}
389
- log .Debugf ("AccessAPI.SendTransaction(): %t, %b " , txn , resp . Id )
378
+ log .Debugf ("AccessAPI.SendTransaction(): %s " , string ( txn . Script ) )
390
379
trace .EndSpanOk (span )
391
380
return resp .Id , nil
392
381
}
@@ -412,7 +401,6 @@ func (c Client) Transaction(ctx context.Context, hash []byte) (*entities.Transac
412
401
trace .EndSpanErr (span , err )
413
402
return nil , err
414
403
}
415
- log .Debugf ("AccessAPI.Transaction(%a): %b" , hash , resp .Transaction )
416
404
trace .EndSpanOk (span )
417
405
return resp .Transaction , nil
418
406
}
@@ -436,7 +424,6 @@ func (c Client) TransactionResult(ctx context.Context, blockID []byte, txnIndex
436
424
return nil , err
437
425
}
438
426
trace .EndSpanOk (span )
439
- log .Debugf ("AccessAPI.TransactionResult(%i): %r" , blockID , resp )
440
427
return resp , nil
441
428
}
442
429
@@ -464,7 +451,6 @@ func (c Client) TransactionResultByHash(ctx context.Context, hash []byte) (*acce
464
451
return nil , err
465
452
}
466
453
trace .EndSpanOk (span )
467
- log .Debugf ("AccessAPI.TransactionResultByHash(): %a" , hash )
468
454
return resp , nil
469
455
}
470
456
@@ -486,7 +472,6 @@ func (c Client) TransactionResultsByBlockID(ctx context.Context, blockID []byte)
486
472
return nil , err
487
473
}
488
474
trace .EndSpanOk (span )
489
- log .Debugf ("AccessAPI.TransactionResultsByBlockID(): %a" , blockID )
490
475
return resp .TransactionResults , nil
491
476
}
492
477
@@ -509,7 +494,6 @@ func (c Client) TransactionsByBlockID(ctx context.Context, blockID []byte) ([]*e
509
494
return nil , err
510
495
}
511
496
trace .EndSpanOk (span )
512
- log .Debugf ("AccessAPI.TransactionsByBlockID(): %a" , blockID )
513
497
return resp .Transactions , nil
514
498
}
515
499
0 commit comments