feat: kubesphere 4.0 (#6115)
* feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> * feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> --------- Signed-off-by: ci-bot <ci-bot@kubesphere.io> Co-authored-by: ks-ci-bot <ks-ci-bot@example.com> Co-authored-by: joyceliu <joyceliu@yunify.com>
This commit is contained in:
committed by
GitHub
parent
b5015ec7b9
commit
447a51f08b
11
vendor/github.com/go-gorp/gorp/v3/logging.go
generated
vendored
11
vendor/github.com/go-gorp/gorp/v3/logging.go
generated
vendored
@@ -6,7 +6,12 @@ package gorp
|
||||
|
||||
import "fmt"
|
||||
|
||||
type GorpLogger interface {
|
||||
// GorpLogger is a deprecated alias of Logger.
|
||||
type GorpLogger = Logger
|
||||
|
||||
// Logger is the type that gorp uses to log SQL statements.
|
||||
// See DbMap.TraceOn.
|
||||
type Logger interface {
|
||||
Printf(format string, v ...interface{})
|
||||
}
|
||||
|
||||
@@ -18,10 +23,10 @@ type GorpLogger interface {
|
||||
// Use TraceOn if you want to spy on the SQL statements that gorp
|
||||
// generates.
|
||||
//
|
||||
// Note that the base log.Logger type satisfies GorpLogger, but adapters can
|
||||
// Note that the base log.Logger type satisfies Logger, but adapters can
|
||||
// easily be written for other logging packages (e.g., the golang-sanctioned
|
||||
// glog framework).
|
||||
func (m *DbMap) TraceOn(prefix string, logger GorpLogger) {
|
||||
func (m *DbMap) TraceOn(prefix string, logger Logger) {
|
||||
m.logger = logger
|
||||
if prefix == "" {
|
||||
m.logPrefix = prefix
|
||||
|
||||
Reference in New Issue
Block a user