Example #1
0
 private function logQiniuError(Error $error)
 {
     //http://developer.qiniu.com/docs/v6/api/reference/codes.html
     $notLogCode = [612];
     if (!in_array($error->code(), $notLogCode)) {
         \Log::error('Qiniu: ' . $error->code() . ' ' . $error->message());
     }
 }
 private function logQiniuError(Error $error)
 {
     \Log::error('Qiniu: ' . $error->message());
 }
 private function logQiniuError(Error $error, $extra = null)
 {
     \Log::error('Qiniu: ' . $error->message() . '. ' . $extra);
 }