diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-01-30 13:31:43 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-01-30 13:31:43 -0500 |
commit | c4508ac8421e71fbd7e2b39ac281c55944111aa6 (patch) | |
tree | 0613279041cc1dddd4633a265e93c9e820352621 | |
parent | 9635b6615ca84c7c1018e28c0da9700f016b0497 (diff) |
Reconfigured trace func to use log.Fatal for os.exit.
-rw-r--r-- | bridge.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -183,8 +183,8 @@ func trace(message string, err error) { f := runtime.FuncForPC(pc[0]) file, line := f.FileLine(pc[0]) if err != nil { - log.Printf("%s:%d %s: %s\n", file, line, f.Name(), err) + log.Fatalf("%s:%d %s: %s\n", file, line, f.Name(), err) } else { - log.Printf("%s:%d %s: %s\n", file, line, f.Name(), message) + log.Fatalf("%s:%d %s: %s\n", file, line, f.Name(), message) } } |