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