Update dependencies. (#13778)

This commit is contained in:
George Goldberg
2020-02-03 16:19:38 +00:00
committed by GitHub
parent 1a82e3e575
commit d7206d2ede
782 changed files with 114917 additions and 55556 deletions

View File

@@ -18,6 +18,24 @@ type hclogAdapter struct {
extrasKey string
}
func (h *hclogAdapter) Log(level hclog.Level, msg string, args ...interface{}) {
switch level {
case hclog.Trace:
h.Trace(msg, args...)
case hclog.Debug:
h.Debug(msg, args...)
case hclog.Info:
h.Info(msg, args...)
case hclog.Warn:
h.Warn(msg, args...)
case hclog.Error:
h.Error(msg, args...)
default:
// For unknown/unexpected log level, treat it as an error so we notice and fix the code.
h.Error(msg, args...)
}
}
func (h *hclogAdapter) Trace(msg string, args ...interface{}) {
extras := strings.TrimSpace(fmt.Sprint(args...))
if extras != "" {
@@ -104,3 +122,11 @@ func (h *hclogAdapter) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writ
}
func (h *hclogAdapter) SetLevel(hclog.Level) {}
func (h *hclogAdapter) ImpliedArgs() []interface{} {
return []interface{}{}
}
func (h *hclogAdapter) Name() string {
return "MattermostPluginLogger"
}