Skip to content

Commit

Permalink
fix logging - remove the terminal when a file is specified (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene authored Apr 26, 2024
1 parent 0526f7a commit c69740a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion go/enclave/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,6 @@ func (e *enclaveImpl) GetBalance(ctx context.Context, encryptedParams common.Enc
return rpc.WithVKEncryption(ctx, e.rpcEncryptionManager, encryptedParams, rpc.GetBalanceValidate, rpc.GetBalanceExecute)
}

// todo - needs to be encrypted
func (e *enclaveImpl) GetCode(ctx context.Context, address gethcommon.Address, batchHash *gethcommon.Hash) ([]byte, common.SystemError) {
if e.stopControl.IsStopping() {
return nil, responses.ToInternalError(fmt.Errorf("requested GetCode with the enclave stopping"))
Expand Down
4 changes: 3 additions & 1 deletion lib/gethfork/debug/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ func Setup(logFmtFlag string, logFile string, rotation bool, maxSize int, maxBac
if logOutputFile, err = os.OpenFile(logFile, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0o644); err != nil {
return err
}
output = io.MultiWriter(logOutputFile, terminalOutput)
// output = io.MultiWriter(logOutputFile, terminalOutput)
// we only want to print to the file
output = logOutputFile
context = append(context, "location", logFile)
} else {
output = terminalOutput
Expand Down

0 comments on commit c69740a

Please sign in to comment.