aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-01-30 13:31:43 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-01-30 13:31:43 -0500
commitc4508ac8421e71fbd7e2b39ac281c55944111aa6 (patch)
tree0613279041cc1dddd4633a265e93c9e820352621
parent9635b6615ca84c7c1018e28c0da9700f016b0497 (diff)
Reconfigured trace func to use log.Fatal for os.exit.
-rw-r--r--bridge.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge.go b/bridge.go
index 46f55d4..38eeb77 100644
--- a/bridge.go
+++ b/bridge.go
@@ -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)
}
}