Printing to check output
This commit is contained in:
4
main.go
4
main.go
@ -36,9 +36,13 @@ func printChat(m chat1.MsgSummary) {
|
||||
log.LogInfo("%s: %s\n", m.Sender.Username, m.Content.Text.Body)
|
||||
}
|
||||
func main() {
|
||||
fmt.Println("Loading config.")
|
||||
loadConfig()
|
||||
fmt.Println("Starting log")
|
||||
log = loggy.NewLogger(config.LogOpts)
|
||||
fmt.Println("Log configured?")
|
||||
defer log.PanicSafe()
|
||||
log.LogInfo("Logger configured")
|
||||
chat := printChat
|
||||
err := log.LogErrorType
|
||||
handlers := keybase.Handlers{
|
||||
|
||||
Reference in New Issue
Block a user