久久久久久久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)
主站蜘蛛池模板: 在线a视频 | 久久青青 | 在线国产小视频 | 日韩一区二区在线播放 | 国产精品久久久久久av公交车 | 成人一级黄色毛片 | 天天躁日日躁性色aⅴ电影 免费在线观看成年人视频 国产欧美精品 | 欧美成年视频 | www.色.com| 国产一区二区免费 | 成人免费黄色片 | 国产韩国精品一区二区三区 | 欧美久久久久久久久 | 伊人激情综合网 | 亚洲高清久久 | 精品国产乱码一区二区三区 | 亚洲精品视 | 国产aⅴ| 午夜男人天堂 | 狠狠色综合网站久久久久久久 | 亚洲va在线va天堂va狼色在线 | 国产高清精品一区二区三区 | 福利视频1000 | 久久伊人影院 | 久久精品二区 | www.免费看片.com | 欧美性视频在线播放 | 久久久久久久久久久丰满 | 亚洲日韩中文字幕一区 | 国产精品久久久久久久久大全 | 精品国产乱码久久久久久88av | 日韩精品一区二区三区视频播放 | 久久精品免费观看 | 国产精品一区二区福利视频 | 岛国在线免费观看 | 日本天天操 | 一区二区三区欧美在线 | 中文字幕精品一区久久久久 | 久久乐国产精品 | 久久久蜜桃一区二区人 | 欧美日韩最新 |