vali il y a 6 ans
Parent
commit
7b33faafb4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      datainf/logic/HttpServerRedisToSql.php

+ 1 - 1
datainf/logic/HttpServerRedisToSql.php

@@ -112,7 +112,7 @@ class HttpServerRedisToSql
                 try {
                     $erowcount = $pdo->exec($sqlstr);
                 } catch (\Exception $e) {
-                    echo "发生异常:" . $e->getCode() . ' ---- ' . $e->getMessage() . "\n";
+                    echo "发生异常:" . $e->getCode() . ' ---- ' . print_r($e->getMessage(),true) . "\n";
                 }
 
                 if (!$erowcount) {