提交 60af68bb 作者: Brian Tiger Chow

rm dead code

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 a84ddcf9
......@@ -6,12 +6,6 @@ import (
"github.com/jbenet/go-ipfs/util"
)
var eloggers = map[string]*logging.Logger{}
func init() {
SetupLogging()
}
// EventLogger extends the StandardLogger interface to allow for log items
// containing structured metadata
type EventLogger interface {
......@@ -79,13 +73,3 @@ func (el *eventLogger) Event(ctx context.Context, event string, metadata ...Logg
}
el.Logger.Info(str)
}
// SetupLogging will initialize the logger backend and set the flags.
func SetupLogging() {
// fmt := logging.DefaultFormatter
// f, err := os.Create("events.ipfslog")
// if err != nil {
// panic("failed to open file for event logger")
// }
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论