Skip to content

Commit

Permalink
Fix logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Jun 19, 2024
1 parent d11b662 commit 1ff38ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion txcache/debugging.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ type dumpedSender struct {
}

func (cache *TxCache) continuouslyDebug() {
log.Info("TXPOOL starting debugging")

// Create folder if it doesn't exist:
err := os.MkdirAll(debuggingFolder, 0755)
if err != nil {
Expand Down Expand Up @@ -185,7 +187,7 @@ func txListForSenderToDumpedSender(sender *txListForSender) *dumpedSender {
}

func saveJson(outfile string, data interface{}) error {
log.Info("saving debugging data", "file", outfile, "data", data)
log.Info("saving debugging data", "file", outfile)

outcomeJSON, err := json.MarshalIndent(data, "", " ")
if err != nil {
Expand Down

0 comments on commit 1ff38ff

Please sign in to comment.