From a95319b2bc9bc6b4295712fcc654a6b6d16d4d53 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 13 Apr 2019 13:17:28 +0100 Subject: [PATCH] Install Bugsnag for debugging --- composer.json | 1 + composer.lock | 235 ++++++++++++++++++++++++++++++++++++++++++++- config/app.php | 1 + config/logging.php | 9 ++ 4 files changed, 245 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 31e914b05..7f6eeac88 100644 --- a/composer.json +++ b/composer.json @@ -60,6 +60,7 @@ "ext-sqlite3": "*", "alt-three/testbench": "^4.0", "barryvdh/laravel-debugbar": "^3.2", + "bugsnag/bugsnag-laravel": "^2.15", "filp/whoops": "^2.3", "fzaninotto/faker": "^1.8", "graham-campbell/analyzer": "^2.1", diff --git a/composer.lock b/composer.lock index f174310e7..600123f81 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0aaa508129681e69c71b9c7f7380cf81", + "content-hash": "616135d38596e8d3c78ed774082dad7e", "packages": [ { "name": "alt-three/badger", @@ -5202,6 +5202,239 @@ ], "time": "2019-02-26T18:01:54+00:00" }, + { + "name": "bugsnag/bugsnag", + "version": "v3.16.0", + "source": { + "type": "git", + "url": "https://github.com/bugsnag/bugsnag-php.git", + "reference": "ffcb6d5504e762db4e1636864c8b830b60878245" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bugsnag/bugsnag-php/zipball/ffcb6d5504e762db4e1636864c8b830b60878245", + "reference": "ffcb6d5504e762db4e1636864c8b830b60878245", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.0", + "guzzlehttp/guzzle": "^5.0|^6.0", + "php": ">=5.5" + }, + "require-dev": { + "graham-campbell/testbench-core": "^1.1", + "mockery/mockery": "^0.9.4|~1.1.0", + "mtdowling/burgomaster": "dev-master#72151eddf5f0cf101502b94bf5031f9c53501a04", + "php-mock/php-mock-phpunit": "^1.1", + "phpunit/phpunit": "^4.8|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.14-dev" + } + }, + "autoload": { + "psr-4": { + "Bugsnag\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "James Smith", + "email": "notifiers@bugsnag.com", + "homepage": "https://bugsnag.com" + } + ], + "description": "Official Bugsnag notifier for PHP applications.", + "homepage": "https://github.com/bugsnag/bugsnag-php", + "keywords": [ + "bugsnag", + "errors", + "exceptions", + "logging", + "tracking" + ], + "time": "2019-01-29T19:09:14+00:00" + }, + { + "name": "bugsnag/bugsnag-laravel", + "version": "v2.15.2", + "source": { + "type": "git", + "url": "https://github.com/bugsnag/bugsnag-laravel.git", + "reference": "bc5f3c5ea9dc31455b7be04a714ac6faf3c4fdec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bugsnag/bugsnag-laravel/zipball/bc5f3c5ea9dc31455b7be04a714ac6faf3c4fdec", + "reference": "bc5f3c5ea9dc31455b7be04a714ac6faf3c4fdec", + "shasum": "" + }, + "require": { + "bugsnag/bugsnag": "^3.15.0", + "bugsnag/bugsnag-psr-logger": "^1.4", + "illuminate/contracts": "^5.0", + "illuminate/support": "^5.0", + "monolog/monolog": "^1.12", + "php": ">=5.5" + }, + "require-dev": { + "graham-campbell/testbench": "^3.1|^4.0|^5.0", + "mockery/mockery": "^0.9.4|~1.1.0", + "phpunit/phpunit": "^4.8|^5.0|^6.0|^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.15-dev" + } + }, + "autoload": { + "psr-4": { + "Bugsnag\\BugsnagLaravel\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "James Smith", + "email": "notifiers@bugsnag.com" + } + ], + "description": "Official Bugsnag notifier for Laravel applications.", + "homepage": "https://github.com/bugsnag/bugsnag-laravel", + "keywords": [ + "bugsnag", + "errors", + "exceptions", + "laravel", + "logging", + "tracking" + ], + "time": "2019-01-23T18:18:44+00:00" + }, + { + "name": "bugsnag/bugsnag-psr-logger", + "version": "v1.4.1", + "source": { + "type": "git", + "url": "https://github.com/bugsnag/bugsnag-psr-logger.git", + "reference": "a9bed75b830cd1a702c888fdbb1e8b2b46af1ac0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bugsnag/bugsnag-psr-logger/zipball/a9bed75b830cd1a702c888fdbb1e8b2b46af1ac0", + "reference": "a9bed75b830cd1a702c888fdbb1e8b2b46af1ac0", + "shasum": "" + }, + "require": { + "bugsnag/bugsnag": "^3.10", + "php": ">=5.5", + "psr/log": "^1.0" + }, + "require-dev": { + "graham-campbell/testbench-core": "^1.1", + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.8|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Bugsnag\\PsrLogger\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "James Smith", + "email": "notifiers@bugsnag.com", + "homepage": "https://bugsnag.com" + } + ], + "description": "Official Bugsnag PHP PSR Logger.", + "homepage": "https://github.com/bugsnag/bugsnag-psr", + "keywords": [ + "bugsnag", + "errors", + "exceptions", + "logging", + "psr", + "tracking" + ], + "time": "2018-02-16T16:51:45+00:00" + }, + { + "name": "composer/ca-bundle", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/558f321c52faeb4828c03e7dc0cfe39a09e09a2d", + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5", + "psr/log": "^1.0", + "symfony/process": "^2.5 || ^3.0 || ^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "time": "2019-01-28T09:30:10+00:00" + }, { "name": "doctrine/instantiator", "version": "1.2.0", diff --git a/config/app.php b/config/app.php index 3ca795a70..4d89d3cae 100644 --- a/config/app.php +++ b/config/app.php @@ -173,6 +173,7 @@ return [ /* * Packages Service Providers... */ + env('APP_DEBUG') ? Bugsnag\BugsnagLaravel\BugsnagServiceProvider : null, AltThree\Badger\BadgerServiceProvider::class, AltThree\Emoji\EmojiServiceProvider::class, AltThree\Twitter\TwitterServiceProvider::class, diff --git a/config/logging.php b/config/logging.php index 872b8d534..d955f262f 100644 --- a/config/logging.php +++ b/config/logging.php @@ -85,6 +85,15 @@ return [ 'driver' => 'errorlog', 'level' => 'debug', ], + + 'bugsnag' => [ + 'driver' => 'bugsnag', + ], + + 'debug' => [ + 'driver' => 'stack', + 'channels' => ['bugsnag', 'single'], + ] ], ];