Răsfoiți Sursa

Added loggibng err msg

TC pushbot 5 4 ani în urmă
părinte
comite
bc42fbe4aa
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      mod/database/database.go

+ 1 - 0
mod/database/database.go

@@ -167,6 +167,7 @@ func (d *Database) KeyExists(tableName string, key string) bool {
 	resultIsNil := false
 	if !d.TableExists(tableName) {
 		//Table not exists. Do not proceed accessing key
+		log.Println("[DB] ERROR: Requesting key from table that didn't exist!!!")
 		return false
 	}
 	err := d.Db.View(func(tx *bolt.Tx) error {