日志
This commit is contained in:
@@ -65,6 +65,7 @@ class UploadController
|
||||
}
|
||||
return $this->error('file not found');
|
||||
} catch (\Throwable $e) {
|
||||
Log::info('uploadFile',[$e->getMessage(),$e->getFile(),$e->getLine()]);
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
@@ -110,6 +111,7 @@ class UploadController
|
||||
|
||||
return $this->success($data);
|
||||
}catch (\Throwable $e){
|
||||
Log::info('uploadFile',[$e->getMessage(),$e->getFile(),$e->getLine()]);
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
@@ -155,6 +157,7 @@ class UploadController
|
||||
return $this->success($data);
|
||||
} catch (\Throwable $e) {
|
||||
// return json(['errno' => 1, 'message' => $e->getMessage()]);
|
||||
Log::info('uploadFile',[$e->getMessage(),$e->getFile(),$e->getLine()]);
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user