diff --git a/log.go b/log.go index 40dc5f6..4497b72 100644 --- a/log.go +++ b/log.go @@ -13,7 +13,7 @@ var ( once sync.Once ) -func InitializeLogger() { +func InitializeSAM3Logger() { once.Do(func() { log = logrus.New() // We do not want to log by default @@ -37,14 +37,14 @@ func InitializeLogger() { }) } -// GetLogger returns the initialized logger -func GetLogger() *logrus.Logger { +// GetSAM3Logger returns the initialized logger +func GetSAM3Logger() *logrus.Logger { if log == nil { - InitializeLogger() + InitializeSAM3Logger() } return log } func init() { - InitializeLogger() + InitializeSAM3Logger() } diff --git a/sam3.go b/sam3.go index 5588ef4..f10d47c 100644 --- a/sam3.go +++ b/sam3.go @@ -19,7 +19,7 @@ import ( ) func init() { - InitializeLogger() + InitializeSAM3Logger() } // Used for controlling I2Ps SAMv3. diff --git a/suggestedOptions.go b/suggestedOptions.go index 5d5a87b..01d5e21 100644 --- a/suggestedOptions.go +++ b/suggestedOptions.go @@ -99,7 +99,7 @@ func PrimarySessionString() string { var PrimarySessionSwitch string = PrimarySessionString() func getEnv(key, fallback string) string { - InitializeLogger() + InitializeSAM3Logger() value, ok := os.LookupEnv(key) if !ok { log.WithFields(logrus.Fields{