update log

This commit is contained in:
2024-10-31 11:14:35 +07:00
parent 91fc5836eb
commit f571d8ea18
8 changed files with 40 additions and 45 deletions

View File

@ -39,7 +39,7 @@ type FlexDXClusterRepository struct {
func NewLog4OMContactsRepository(filePath string) *Log4OMContactsRepository {
db, err := sql.Open("sqlite3", filePath)
if err != nil {
fmt.Println("Cannot open db", err)
Log.Errorf("Cannot open db", err)
}
_, err = db.Exec("PRAGMA journal_mode=WAL")
if err != nil {
@ -58,7 +58,7 @@ func NewFlexDXDatabase(filePath string) *FlexDXClusterRepository {
fmt.Println("Cannot open db", err)
}
Log.Info("Opening SQLite database")
Log.Debugln("Opening SQLite database")
_, err = db.ExecContext(
context.Background(),