File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,13 +111,12 @@ public function __call($func, $params)
111111 $ redis_server = $ this ->connect ($ reconnect );
112112 $ ret = call_user_func_array ([$ redis_server , $ func ], $ params );
113113 } catch (\RedisException $ e ) {
114- logger ()->error ('Redis exec error ' ,
115- [
116- "host " => "{$ this ->config ['host ' ]}: {$ this ->config ['port ' ]}" ,
117- "msg " => $ e ->getMessage (),
118- "file " => $ e ->getFile (),
119- 'line ' => $ e ->getLine (),
120- ]);
114+ logger ()->error ('Redis exec error ' , [
115+ "host " => "{$ this ->config ['host ' ]}: {$ this ->config ['port ' ]}" ,
116+ "msg " => $ e ->getMessage (),
117+ "method " => $ func ,
118+ "params " => $ params ,
119+ ]);
121120 if ($ i == 0 ) {
122121 $ reconnect = true ;
123122 continue ;
@@ -127,6 +126,12 @@ public function __call($func, $params)
127126 }
128127 }
129128 } catch (\Exception $ e ) {
129+ logger ()->error ("Redis error " , [
130+ "host " => "{$ this ->config ['host ' ]}: {$ this ->config ['port ' ]}" ,
131+ "method " => $ func ,
132+ "params " => $ params ,
133+ ]);
134+
130135 if ($ this ->throw_exception ) {
131136 throw $ e ;
132137 }
You can’t perform that action at this time.
0 commit comments