19 lines
233 B
Go
19 lines
233 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"go.elara.ws/logger"
|
|
"go.elara.ws/logger/log"
|
|
)
|
|
|
|
func init() {
|
|
l := logger.NewPretty(os.Stderr)
|
|
|
|
if os.Getenv("LEMMY_REPLY_BOT_DEBUG") == "1" {
|
|
l.Level = logger.LogLevelDebug
|
|
}
|
|
|
|
log.Logger = l
|
|
}
|