Disable morph logging during TestMain (#30948)
* rm "No TEST_DATABASE... override" log message Let's only log if this value is actually overridden. * rm "(Created|Dropped) temporary database" message * only log "Pinging SQL" on subsequent attempts * disable morph logging from TestMain * Fix style issues in store test files - Add missing parameter to migrate() function calls in tests - Remove unused log function in settings.go - Fix formatting with go fmt 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * within sqlstore, use "enable" vs "disable" for clarity * remove trailing newline from morph logs --------- Co-authored-by: Claude <noreply@anthropic.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
92db356484
Коммит
31a8047973
@@ -143,7 +143,7 @@ func (h *MainHelper) setupStore(withReadReplica bool) {
|
||||
h.ClusterInterface = &FakeClusterInterface{}
|
||||
|
||||
var err error
|
||||
h.SQLStore, err = sqlstore.New(*h.Settings, h.Logger, nil)
|
||||
h.SQLStore, err = sqlstore.New(*h.Settings, h.Logger, nil, sqlstore.DisableMorphLogging())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -160,7 +160,7 @@ func (h *MainHelper) ToggleReplicasOff() {
|
||||
lic := h.SQLStore.GetLicense()
|
||||
|
||||
var err error
|
||||
h.SQLStore, err = sqlstore.New(*h.Settings, h.Logger, nil)
|
||||
h.SQLStore, err = sqlstore.New(*h.Settings, h.Logger, nil, sqlstore.DisableMorphLogging())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -175,7 +175,7 @@ func (h *MainHelper) ToggleReplicasOn() {
|
||||
lic := h.SQLStore.GetLicense()
|
||||
|
||||
var err error
|
||||
h.SQLStore, err = sqlstore.New(*h.Settings, h.Logger, nil)
|
||||
h.SQLStore, err = sqlstore.New(*h.Settings, h.Logger, nil, sqlstore.DisableMorphLogging())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user