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

Commit

Permalink
fix logging bug (#139)
Browse files Browse the repository at this point in the history
* fix logging bug

* update
  • Loading branch information
shrimalmadhur authored Nov 7, 2023
1 parent 747befe commit f6c3b7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit f6c3b7e

Please sign in to comment.