Browse Source

remove some log

stanley-king 4 years atrás
parent
commit
f559a89d31
2 changed files with 5 additions and 13 deletions
  1. 5 12
      helper/refill/util.php
  2. 0 1
      test/TestRedis.php

+ 5 - 12
helper/refill/util.php

@@ -248,8 +248,7 @@ class util
         $sec = time();
         $key_sec = "pre-{$chname}-{$quality}-{$card_type}-{$spec}-{$sec}";
 
-        $val = $ins->hIncrBy($name, $key_sec, 1);
-        Log::record("incr_commit_pre sec name = {$name} key={$key_sec} val={$val}", Log::DEBUG);
+        $ins->hIncrBy($name, $key_sec, 1);
     }
 
     public static function hget_commit_pre_sec($chname, $card_type, $spec, $quality, $time_stamp)
@@ -260,8 +259,6 @@ class util
         $key_sec = "pre-{$chname}-{$quality}-{$card_type}-{$spec}-{$time_stamp}";
         $value = $ins->hget($name, '', $key_sec);
 
-        Log::record("hget_commit_pre_sec sec name = {$name} key={$key_sec} val={$value}", Log::DEBUG);
-
         return intval($value);
     }
 
@@ -281,10 +278,8 @@ class util
             $key_min = "failm-{$chname}-{$quality}-{$card_type}-{$spec}-{$min}";
         }
 
-        $val = $ins->hIncrBy($name, $key_sec, 1);
-        Log::record("incr_commit sec name = {$name} key={$key_sec} val={$val}", Log::DEBUG);
-        $val = $ins->hIncrBy($name, $key_min, 1);
-        Log::record("incr_commit min name = {$name} key={$key_min} val={$val}", Log::DEBUG);
+        $ins->hIncrBy($name, $key_sec, 1);
+        $ins->hIncrBy($name, $key_min, 1);
     }
 
     public static function hget_commit_sec($chname, $card_type, $spec, $quality, $time_stamp, $fsuccess = true)
@@ -336,10 +331,8 @@ class util
             $key_min = "failm-{$chname}-{$quality}-{$card_type}-{$spec}-{$min}";
         }
 
-        $val = $ins->hIncrBy($name, $key_sec, 1);
-        Log::record("incr_commit sec name = {$name} key={$key_sec} val={$val}", Log::DEBUG);
-        $val = $ins->hIncrBy($name, $key_min, 1);
-        Log::record("incr_commit min name = {$name} key={$key_min} val={$val}", Log::DEBUG);
+        $ins->hIncrBy($name, $key_sec, 1);
+        $ins->hIncrBy($name, $key_min, 1);
     }
 
     public static function hget_notify_sec($chname, $card_type, $spec, $quality, $time_stamp, $fsuccess = true)

+ 0 - 1
test/TestRedis.php

@@ -168,7 +168,6 @@ class TestRedis extends TestCase
             . sprintf('%06d', (float)microtime() * 1000000);
     }
 
-
     public static function tearDownAfterClass() : void
     {