diff --git a/translib/db/db_keys_pattern.go b/translib/db/db_keys_pattern.go index c1bc565f5..30a7ee69e 100644 --- a/translib/db/db_keys_pattern.go +++ b/translib/db/db_keys_pattern.go @@ -118,8 +118,6 @@ func (d *DB) ExistKeysPattern(ts *TableSpec, pat Key) (bool, error) { // Run Lua script [Found = SUCCESS return] if d.Opts.IsWriteDisabled && !exists { - //glog.Info("ExistKeysPattern: B4= ", luaScriptExistsKeysPatterns.Hash()) - var luaExists interface{} if luaExists, err = luaScriptExistsKeysPatterns.Run(d.client, []string{d.key2redis(ts, pat)}).Result(); err == nil { @@ -133,8 +131,6 @@ func (d *DB) ExistKeysPattern(ts *TableSpec, pat Key) (bool, error) { err = tlerr.TranslibDBScriptFail{Description: existsString} } } - - //glog.Info("ExistKeysPattern: AF= ", luaScriptExistsKeysPatterns.Hash()) } // Time End, Time, Peak diff --git a/translib/db/db_table_pattern.go b/translib/db/db_table_pattern.go index a666ce55e..f5a135951 100644 --- a/translib/db/db_table_pattern.go +++ b/translib/db/db_table_pattern.go @@ -141,14 +141,12 @@ func (d *DB) GetTablePattern(ts *TableSpec, pat Key) (Table, error) { keys = make([]Key, 0, len(tkNv)/2) for i, v := range tkNv { - // glog.Info("GetTablePattern: i: ", i, " v: ", v) if i%2 == 0 { if redisKey, ok = v.(string); !ok { err = tlerr.TranslibDBScriptFail{Description: "Unexpected key"} return table, err } } else { - // glog.Info("GetTablePattern: i: ", i, " v: ", v) if redisValue, ok = v.([]interface{}); !ok { err = tlerr.TranslibDBScriptFail{Description: "Unexpected hash"} return table, err diff --git a/translib/db/db_table_pattern_test.go b/translib/db/db_table_pattern_test.go index 80f77e4a1..facef0242 100644 --- a/translib/db/db_table_pattern_test.go +++ b/translib/db/db_table_pattern_test.go @@ -20,7 +20,6 @@ package db import ( - "fmt" "reflect" "testing" ) @@ -97,9 +96,9 @@ func TestGetTablePatternCompOrig(t *testing.T) { delete(tOrig.patterns, db.key2redis(&ts, Key{Comp: []string{"*"}})) if !reflect.DeepEqual(tPat, tOrig) { - fmt.Println("\ntPat: \n", tPat) - fmt.Println("\ntOrig: \n", tOrig) - t.Errorf("GetTable() != GetTablePattern") + t.Log("\ntPat: \n", tPat) + t.Log("\ntOrig: \n", tOrig) + t.Error("GetTable() != GetTablePattern") } } @@ -116,9 +115,9 @@ func TestGetTablePatternCompOrigEmpty(t *testing.T) { } if !reflect.DeepEqual(tPat, tOrig) { - fmt.Println("\ntPat: \n", tPat) - fmt.Println("\ntOrig: \n", tOrig) - t.Errorf("Empty GetTable() != GetTablePattern") + t.Log("\ntPat: \n", tPat) + t.Log("\ntOrig: \n", tOrig) + t.Error("Empty GetTable() != GetTablePattern") } }