summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-xorm/xorm/logger.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-01-03 16:20:28 +0800
committerGitHub <noreply@github.com>2017-01-03 16:20:28 +0800
commit980dd0bf513597abc4753585e6cc7eb8b30272d1 (patch)
tree8ca1f6bfb1a518cb6bdd5261d2454b279fb43101 /vendor/github.com/go-xorm/xorm/logger.go
parent70900bd16724ccb73d8b69e830f046b4815c9595 (diff)
downloadgitea-980dd0bf513597abc4753585e6cc7eb8b30272d1.tar.gz
gitea-980dd0bf513597abc4753585e6cc7eb8b30272d1.zip
Update xorm and dependencies vendor for feature to dump to other database (#565)
* update xorm and dependencies vendor for feature to dump to other database * fix golint
Diffstat (limited to 'vendor/github.com/go-xorm/xorm/logger.go')
-rw-r--r--vendor/github.com/go-xorm/xorm/logger.go38
1 files changed, 31 insertions, 7 deletions
diff --git a/vendor/github.com/go-xorm/xorm/logger.go b/vendor/github.com/go-xorm/xorm/logger.go
index b4f9737816..428ae8f2e0 100644
--- a/vendor/github.com/go-xorm/xorm/logger.go
+++ b/vendor/github.com/go-xorm/xorm/logger.go
@@ -20,21 +20,45 @@ const (
var _ core.ILogger = DiscardLogger{}
+// DiscardLogger don't log implementation for core.ILogger
type DiscardLogger struct{}
-func (DiscardLogger) Debug(v ...interface{}) {}
+// Debug empty implementation
+func (DiscardLogger) Debug(v ...interface{}) {}
+
+// Debugf empty implementation
func (DiscardLogger) Debugf(format string, v ...interface{}) {}
-func (DiscardLogger) Error(v ...interface{}) {}
+
+// Error empty implementation
+func (DiscardLogger) Error(v ...interface{}) {}
+
+// Errorf empty implementation
func (DiscardLogger) Errorf(format string, v ...interface{}) {}
-func (DiscardLogger) Info(v ...interface{}) {}
-func (DiscardLogger) Infof(format string, v ...interface{}) {}
-func (DiscardLogger) Warn(v ...interface{}) {}
-func (DiscardLogger) Warnf(format string, v ...interface{}) {}
+
+// Info empty implementation
+func (DiscardLogger) Info(v ...interface{}) {}
+
+// Infof empty implementation
+func (DiscardLogger) Infof(format string, v ...interface{}) {}
+
+// Warn empty implementation
+func (DiscardLogger) Warn(v ...interface{}) {}
+
+// Warnf empty implementation
+func (DiscardLogger) Warnf(format string, v ...interface{}) {}
+
+// Level empty implementation
func (DiscardLogger) Level() core.LogLevel {
return core.LOG_UNKNOWN
}
+
+// SetLevel empty implementation
func (DiscardLogger) SetLevel(l core.LogLevel) {}
-func (DiscardLogger) ShowSQL(show ...bool) {}
+
+// ShowSQL empty implementation
+func (DiscardLogger) ShowSQL(show ...bool) {}
+
+// IsShowSQL empty implementation
func (DiscardLogger) IsShowSQL() bool {
return false
}