From 47dd1cb7ae8591b4c63b68371cc1922c0aa5f98e Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 31 Oct 2020 05:36:46 +0000 Subject: Refactor Logger (#13294) Refactor Logger to make a logger interface and make it possible to wrap loggers for specific purposes. Co-authored-by: techknowlogick --- modules/indexer/issues/elastic_search.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/indexer/issues') diff --git a/modules/indexer/issues/elastic_search.go b/modules/indexer/issues/elastic_search.go index 1f9c59965c..4cdeff53dc 100644 --- a/modules/indexer/issues/elastic_search.go +++ b/modules/indexer/issues/elastic_search.go @@ -27,11 +27,11 @@ type ElasticSearchIndexer struct { } type elasticLogger struct { - *log.Logger + log.LevelLogger } func (l elasticLogger) Printf(format string, args ...interface{}) { - _ = l.Logger.Log(2, l.Logger.GetLevel(), format, args...) + _ = l.Log(2, l.GetLevel(), format, args...) } // NewElasticSearchIndexer creates a new elasticsearch indexer -- cgit v1.2.3