Skip to content

Commit

Permalink
refactor: removed unwanted logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashk767 committed Dec 3, 2024
1 parent 5631ae4 commit ba30b03
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions cmd/config-utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,6 @@ func setLogLevel(config types.Configurations) {
log.SetLogLevel(logrus.DebugLevel)
}

log.Debugf("Config details: %+v", config)

if razorUtils.IsFlagPassed("logFile") {
log.Debugf("Log File Max Size: %d MB", config.LogFileMaxSize)
log.Debugf("Log File Max Backups (max number of old log files to retain): %d", config.LogFileMaxBackups)
Expand Down
15 changes: 0 additions & 15 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ func NewLogger(address string, client *ethclient.Client, blockMonitor *block.Blo
blockMonitor: blockMonitor,
}

logger.logSystemInfo()

return logger
}

Expand All @@ -92,19 +90,6 @@ func InitializeLogger(fileName string, config types.Configurations) {
globalLogger.LogrusInstance.Formatter = &logrus.JSONFormatter{}
}

// logSystemInfo logs system-related details at initialization.
func (l *Logger) logSystemInfo() {
osInfo := goInfo.GetInfo()
l.LogrusInstance.WithFields(logrus.Fields{
"Operating System": osInfo.OS,
"Core": osInfo.Core,
"Platform": osInfo.Platform,
"CPUs": osInfo.CPUs,
"razor-go version": core.VersionWithMeta,
"go version": runtime.Version(),
}).Info("Logger initialized")
}

// Error logs a simple error message.
func (l *Logger) Error(args ...interface{}) {
epoch, blockNumber := l.updateBlockInfo()
Expand Down

0 comments on commit ba30b03

Please sign in to comment.