From 0b9d647e2adcd155f67095bc2d8d6adf79bcde49 Mon Sep 17 00:00:00 2001 From: Nathaniel Niosco Date: Wed, 27 Mar 2019 12:02:17 -0700 Subject: [PATCH] update logger --- logger.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/logger.go b/logger.go index db169ac..3b84897 100644 --- a/logger.go +++ b/logger.go @@ -1,7 +1,7 @@ package synapse import ( - logrus "github.com/sirupsen/logrus" + logging "log" ) type ( @@ -11,16 +11,16 @@ type ( var log *logger -// Info used to log information -func (l *logger) info(args ...interface{}) { +// Error used to log errors +func (l *logger) error(args ...interface{}) { if logMode { - logrus.Info(args...) + logging.Println(args...) } } -// Error used to log errors -func (l *logger) error(args ...interface{}) { +// Info used to log information +func (l *logger) info(args ...interface{}) { if logMode { - logrus.Error(args...) + logging.Println(args...) } }