From 05dcc0a9496c060d1550bdaa8e598087752d8135 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Sun, 19 Jan 2020 10:44:20 -0500 Subject: [PATCH] Reducing logging since we're mostly stable --- keyrcbot.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keyrcbot.go b/keyrcbot.go index 4c66185..a1473f0 100755 --- a/keyrcbot.go +++ b/keyrcbot.go @@ -24,14 +24,14 @@ var ( KBTeam: "nightmarehaus.bots", // Set this for Logging output to Keybase team KBChann: "general", // Required for logging to Keybase Team, can be any channel ProgName: "irclink", // Also required for logging to Keybase team - Level: 3, // 1 = Critical only, 2 = Errors, 3 = include Warnings, 4 = Debug, 5 = Info + Level: 2, // 1 = Critical only, 2 = Errors, 3 = include Warnings, 4 = Debug, 5 = Info UseStdout: true, // Set to true to also display to stdout } log = loggy.NewLogger(logOpts) ) func main() { - log.LogWarn("Starting bot") + log.LogCritical("Starting bot") if !k.LoggedIn { log.LogPanic("You are not logged in.") } @@ -61,7 +61,7 @@ func setupIRC() { setupKeybaseLinks() log.LogWarn("Calling irc.Run()") irc.Run() - log.LogError("irc.Run() returned") + log.LogPanic("irc.Run() returned") } func setupKeybaseLinks() { log.LogWarn("Setting up keybase channel links") @@ -100,7 +100,7 @@ func addIrcTrigger(name string) { } irc.Channels = append(irc.Channels, fmt.Sprintf("#%s", name)) irc.Join(fmt.Sprintf("#%s", name)) - log.LogWarn(fmt.Sprintf("Adding trigger for #%s to bot", name)) + log.LogCritical(fmt.Sprintf("Adding trigger for #%s to bot", name)) irc.AddTrigger(botLessTrigger) log.LogDebug(fmt.Sprintf("irc.Channels = %+v", irc.Channels)) sendChat(fmt.Sprintf("# Connected to #%s!", name), name)