prune util/log and user logger (#1237)
* prune util/log and user logger Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * plaintext logger Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * add newline Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -7,7 +7,7 @@ import ( | ||||
|  | ||||
| 	"github.com/forestgiant/sliceutil" | ||||
| 	"github.com/micro/go-micro/v2/agent/input" | ||||
| 	"github.com/micro/go-micro/v2/util/log" | ||||
| 	log "github.com/micro/go-micro/v2/logger" | ||||
| 	tgbotapi "gopkg.in/telegram-bot-api.v4" | ||||
| ) | ||||
|  | ||||
| @@ -104,7 +104,7 @@ func (tc *telegramConn) Send(event *input.Event) error { | ||||
|  | ||||
| 	if err != nil { | ||||
| 		// probably it could be because of nested HTML tags -- telegram doesn't allow nested tags | ||||
| 		log.Log("[telegram][Send] error:", err) | ||||
| 		log.Error("[telegram][Send] error:", err) | ||||
| 		msgConfig.Text = "This bot couldn't send the response (Internal error)" | ||||
| 		tc.input.api.Send(msgConfig) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user