mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
fix slack hook naming
This commit is contained in:
parent
0d9b503278
commit
e2fef7b6d2
|
@ -8,12 +8,12 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
type SlackLogHook struct {
|
||||
type LogHook struct {
|
||||
Slack *slack.Client
|
||||
ErrorChannel string
|
||||
}
|
||||
|
||||
func (t *SlackLogHook) Levels() []logrus.Level {
|
||||
func (t *LogHook) Levels() []logrus.Level {
|
||||
return []logrus.Level{
|
||||
// log.InfoLevel,
|
||||
logrus.ErrorLevel,
|
||||
|
@ -22,7 +22,7 @@ func (t *SlackLogHook) Levels() []logrus.Level {
|
|||
}
|
||||
}
|
||||
|
||||
func (t *SlackLogHook) Fire(e *logrus.Entry) error {
|
||||
func (t *LogHook) Fire(e *logrus.Entry) error {
|
||||
var color = "#F0F0F0"
|
||||
|
||||
switch e.Level {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
package slack
|
Loading…
Reference in New Issue
Block a user