Skip to content

Commit c5be508

Browse files
author
tac0turtle
committed
fix logs and move compress log to debug
1 parent 75255fa commit c5be508

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

da/cmd/local-da/local.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"crypto/rand"
88
"crypto/sha256"
99
"encoding/binary"
10+
"encoding/hex"
1011
"errors"
1112
"fmt"
1213
"sync"
@@ -189,7 +190,7 @@ func (d *LocalDA) SubmitWithOptions(ctx context.Context, blobs []coreda.Blob, ga
189190
d.logger.Error().Err(err).Msg("SubmitWithOptions: invalid namespace")
190191
return nil, err
191192
}
192-
d.logger.Info().Int("numBlobs", len(blobs)).Float64("gasPrice", gasPrice).Str("namespace", string(ns)).Msg("SubmitWithOptions called")
193+
d.logger.Info().Int("numBlobs", len(blobs)).Float64("gasPrice", gasPrice).Str("namespace", hex.EncodeToString(ns)).Msg("SubmitWithOptions called")
193194

194195
// Validate blob sizes before processing
195196
for i, blob := range blobs {
@@ -219,7 +220,7 @@ func (d *LocalDA) Submit(ctx context.Context, blobs []coreda.Blob, gasPrice floa
219220
d.logger.Error().Err(err).Msg("Submit: invalid namespace")
220221
return nil, err
221222
}
222-
d.logger.Info().Int("numBlobs", len(blobs)).Float64("gasPrice", gasPrice).Str("namespace", string(ns)).Msg("Submit called")
223+
d.logger.Info().Int("numBlobs", len(blobs)).Float64("gasPrice", gasPrice).Str("namespace", hex.EncodeToString(ns)).Msg("Submit called")
223224

224225
// Validate blob sizes before processing
225226
for i, blob := range blobs {

da/jsonrpc/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (api *API) Submit(ctx context.Context, blobs []da.Blob, gasPrice float64, n
200200

201201
if totalOriginal > 0 {
202202
savings := float64(totalOriginal-totalCompressed) / float64(totalOriginal) * 100
203-
api.Logger.Info().
203+
api.Logger.Debug().
204204
Uint64("total_original", totalOriginal).
205205
Uint64("total_compressed", totalCompressed).
206206
Float64("savings_percent", savings).
@@ -261,7 +261,7 @@ func (api *API) SubmitWithOptions(ctx context.Context, inputBlobs []da.Blob, gas
261261

262262
if totalOriginal > 0 {
263263
savings := float64(totalOriginal-totalCompressed) / float64(totalOriginal) * 100
264-
api.Logger.Info().
264+
api.Logger.Debug().
265265
Uint64("total_original", totalOriginal).
266266
Uint64("total_compressed", totalCompressed).
267267
Float64("savings_percent", savings).

pkg/cmd/run_node.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"os"
88
"os/signal"
9-
"path/filepath"
109
"syscall"
1110
"time"
1211

@@ -98,9 +97,6 @@ func StartNode(
9897

9998
// Resolve signer path relative to root directory if it's not an absolute path
10099
signerPath := nodeConfig.Signer.SignerPath
101-
if !filepath.IsAbs(signerPath) {
102-
signerPath = filepath.Join(nodeConfig.RootDir, signerPath)
103-
}
104100
signer, err = file.LoadFileSystemSigner(signerPath, []byte(passphrase))
105101
if err != nil {
106102
return err

0 commit comments

Comments
 (0)