Skip to content

Commit

Permalink
review log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stremovsky committed Aug 24, 2024
1 parent 74d8423 commit cbaea11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/storage/sqlite-storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (dbobj *SQLiteDB) OpenDB(filepath *string) error {
if len(dbfile) >= 3 && dbfile[len(dbfile)-3:] != ".db" {
dbfile = dbfile + ".db"
}
log.Printf("Databunker db file is: %s\n", dbfile)
log.Printf("Database file: %s\n", dbfile)
// collect list of all tables
/*
if _, err := os.Stat(dbfile); !os.IsNotExist(err) {
Expand Down Expand Up @@ -124,7 +124,7 @@ func (dbobj *SQLiteDB) OpenDB(filepath *string) error {
knownApps = append(knownApps, t)
}
tx.Commit()
log.Printf("List of tables: %s\n", knownApps)
log.Printf("Found tables: %s\n", knownApps)
return nil
}

Expand All @@ -139,7 +139,7 @@ func (dbobj *SQLiteDB) InitDB(filepath *string) error {
if len(dbfile) >= 3 && dbfile[len(dbfile)-3:] != ".db" {
dbfile = dbfile + ".db"
}
log.Printf("Init Databunker db file is: %s\n", dbfile)
log.Printf("Create database file: %s\n", dbfile)
db, err := sql.Open("sqlite", "file:"+dbfile+"?_journal_mode=WAL")
if err != nil {
return err
Expand Down

0 comments on commit cbaea11

Please sign in to comment.