From 2f4b177f08c21ffb3f7c41858224006f365937ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Fri, 3 Nov 2017 09:38:44 +0100 Subject: [PATCH] trace log and trace error --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6c0b315..5f45d89 100644 --- a/main.go +++ b/main.go @@ -87,7 +87,7 @@ func LogError(comment string, err error) { logger.splitErrorLog() } -func LogDetailedEvent(event string) { +func TraceEvent(event string) { muEv.Lock() defer muEv.Unlock() _, file, line, ok := runtime.Caller(1) @@ -101,7 +101,7 @@ func LogDetailedEvent(event string) { logger.splitEventLog() } -func LogDetailedError(err error) { +func TraceError(err error) { muEr.Lock() defer muEr.Unlock() _, file, line, ok := runtime.Caller(1) -- 1.8.1.2