Created
September 22, 2014 19:34
-
-
Save gardenmwm/220f5fa3a1410b543937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 func grokline(match grok.Match) map[string][]string { | |
143 fields := make(map[string][]string) | |
144 defer func() { | |
145 if e:= recover(); e!= nil { | |
146 fmt.Println("Recovering",e) | |
147 } | |
148 }() | |
149 panic("Panicing") | |
150 match.Captures() | |
151 return fields | |
152 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment