Skip to content

Commit

Permalink
update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Niosco committed Mar 27, 2019
1 parent d96d529 commit 0b9d647
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions logger.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package synapse

import (
logrus "github.com/sirupsen/logrus"
logging "log"
)

type (
Expand All @@ -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...)
}
}

0 comments on commit 0b9d647

Please sign in to comment.