Skip to content

Commit 9250412

Browse files
authored
feat: Remove database transaction monitoring logs (#11765)
1 parent 9c53705 commit 9250412

2 files changed

Lines changed: 0 additions & 71 deletions

File tree

agent/utils/common/sqlite.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"log"
66
"os"
77
"path"
8-
"strings"
98
"time"
109

1110
"github.com/1Panel-dev/1Panel/agent/global"
@@ -68,9 +67,6 @@ func GetDBWithPath(dbPath string) (*gorm.DB, error) {
6867
if err != nil {
6968
return nil, err
7069
}
71-
if strings.HasSuffix(dbPath, "core.db") || strings.HasSuffix(dbPath, "agent.db") {
72-
initializeTxWatch(db)
73-
}
7470
sqlDB, dbError := db.DB()
7571
if dbError != nil {
7672
return nil, dbError

agent/utils/common/sqlite_tx_logs.go

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)