久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Laravel 5 錯誤報告抑制

Laravel 5 Error Reporting Suppression(Laravel 5 錯誤報告抑制)
本文介紹了Laravel 5 錯誤報告抑制的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

在 Laravel 4 中,很容易抑制 E_NOTICE 消息;我似乎無法做到這一點,因為如果我添加

In Laravel 4, it was easy enough to suppress E_NOTICE messages; I can't seem to be able to do this because if I add

error_reporting(E_ALL ^ E_NOTICE) 

在任何地方它都會被覆蓋.

anywhere it simply gets overridden.

這似乎發生在這里:(index.php)

This seems to happen around here: (index.php)

$response = $kernel->handle(
    $request = IlluminateHttpRequest::capture()

);

我在 Exceptions/Handler.php 中添加了自定義代碼來處理更多漂亮"的異常/錯誤視圖,但我正在努力關閉通知(我根本不希望這些中的任何一個被通知觸發)

I have added custom code to handle more "pretty" views of exceptions/errors within Exceptions/Handler.php but I'm struggling to switch off notices (I don't want any of these firing off with notices at all)

  • 是的,該問題應該修復,我知道這一點,但是在這種情況下,我更希望通知不會在現場轟炸應用程序(我有一個自定義日志記錄解決方案為此),并且在開發中我希望顯示通知.
  • Yes, the issue should be fixed, I'm aware of this, however this is a case where I'd prefer the notices NOT bombing the app on live (I have a custom logging solution for this), and on dev I'd like the notice to show.

推薦答案

在 Laravel 5 中,我們可以在 AppServiceProviders::boot 里面設置 error_reporting(E_ALL ^ E_NOTICE)方法:

In Laravel 5, we can set error_reporting(E_ALL ^ E_NOTICE) inside the AppServiceProviders::boot method:

public function boot()
{
    //set whatever level you want
    error_reporting(E_ALL ^ E_NOTICE);
} 

這篇關于Laravel 5 錯誤報告抑制的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Magento products by categories(按類別劃分的 Magento 產品)
Resource interpreted as image but transferred with MIME type text/html - Magento(資源被解釋為圖像但使用 MIME 類型 text/html 傳輸 - Magento)
Is there an event for customer account registration in Magento?(Magento 中是否有客戶帳戶注冊事件?)
Magento addFieldToFilter: Two fields, match as OR, not AND(Magento addFieldToFilter:兩個字段,匹配為 OR,而不是 AND)
quot;Error 404 Not Foundquot; in Magento Admin Login Page(“未找到錯誤 404在 Magento 管理員登錄頁面)
Get Order Increment Id in Magento(在 Magento 中獲取訂單增量 ID)
主站蜘蛛池模板: 国产色片 | 亚洲国产一区二区视频 | 91伊人网 | 久久国产传媒 | 日韩一区精品 | 国产精品美女久久久久久不卡 | 国产日韩一区二区三区 | 日本久久精品视频 | 求个av网址 | 本道综合精品 | 成人在线观看亚洲 | 精品欧美一区二区三区久久久 | 国产高清性xxxxxxxx | 男女爱爱福利视频 | 免费看a| 亚洲一区二区三区免费视频 | 成人国产精品视频 | 青青久视频| 国产91在线播放 | 成人午夜av | 99成人| 免费一级黄色录像 | 五月天婷婷综合 | 精品国产一区二区三区久久 | 特级丰满少妇一级aaaa爱毛片 | 精品久久久久久国产 | 国产美女特级嫩嫩嫩bbb片 | 亚洲一区二区av | 国产免费一区二区 | 91亚洲国产成人久久精品网站 | 做a视频在线观看 | 国产高清在线精品 | 欧美激情在线精品一区二区三区 | 中文字幕四虎 | 成人精品免费视频 | 999免费网站 | 欧美黄色片| 久久噜噜噜精品国产亚洲综合 | 三级国产三级在线 | 夜夜爽夜夜操 | 欧美一区二区激情三区 |