Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

fix logging bug #139

Merged
merged 2 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/operator/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func RegisterCmd(p prompter.Prompter) *cobra.Command {
if err != nil {
return err
}
logger.Info("Operator registration transaction at:", getTransactionLink(receipt.TxHash.String(), &operatorCfg.ChainId))
logger.Infof("Operator registration transaction at: %s", getTransactionLink(receipt.TxHash.String(), &operatorCfg.ChainId))

} else {
logger.Info("Operator is already registered")
Expand All @@ -170,7 +170,7 @@ func RegisterCmd(p prompter.Prompter) *cobra.Command {
if err != nil {
return err
}
logger.Info("Operator bls key added transaction at:", getTransactionLink(receipt.TxHash.String(), &operatorCfg.ChainId))
logger.Infof("Operator bls key added transaction at: %s", getTransactionLink(receipt.TxHash.String(), &operatorCfg.ChainId))

logger.Info("Operator is registered and bls key added successfully")
return nil
Expand Down
10 changes: 5 additions & 5 deletions cli/operator/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func UpdateCmd(p prompter.Prompter) *cobra.Command {
return nil
},
RunE: func(cmd *cobra.Command, args []string) error {
llog, err := eigensdkLogger.NewZapLogger(eigensdkLogger.Development)
logger, err := eigensdkLogger.NewZapLogger(eigensdkLogger.Development)
if err != nil {
return err
}
Expand All @@ -97,7 +97,7 @@ func UpdateCmd(p prompter.Prompter) *cobra.Command {
common.HexToAddress(operatorCfg.BlsPublicKeyCompendiumAddress),
ethClient,
ethClient,
llog,
logger,
)
if err != nil {
return err
Expand All @@ -108,7 +108,7 @@ func UpdateCmd(p prompter.Prompter) *cobra.Command {
elContractsClient,
ethClient,
localSigner,
llog,
logger,
noopMetrics,
)

Expand All @@ -119,9 +119,9 @@ func UpdateCmd(p prompter.Prompter) *cobra.Command {
if err != nil {
return err
}
fmt.Println("Operator details updated at:", getTransactionLink(receipt.TxHash.String(), &operatorCfg.ChainId))
logger.Infof("Operator details updated at: %s", getTransactionLink(receipt.TxHash.String(), &operatorCfg.ChainId))

fmt.Println("Operator updated successfully")
logger.Info("Operator updated successfully")
return nil
},
}
Expand Down