Comments (5)
I believe bugsnag release-stages do not have anything to do with any environments created/identified in Laravel. You have to map them to each other.
For example:
// Current laravel environment
$env = strtolower(app()->env);
// Match Laravel environments to bugsnag environments.
switch($env)
{
case 'local' :
case 'another-local' :
case 'another-local-local':
Bugsnag::setReleaseStage('local');
break;
case 'paas' :
case 'development' :
Bugsnag::setReleaseStage('development');
break;
case 'staging' :
case 'staging-2' :
Bugsnag::setReleaseStage('staging');
break;
case 'production' :
Bugsnag::setReleaseStage('production');
break;
default :
Bugsnag::setReleaseStage('production');
break;
}
// Identify which bugsnag environments should be logged.
Bugsnag::setNotifyReleaseStages(array('production', 'staging'));
from bugsnag-laravel.
Looking further, my example is a 1/2 truth I believe -- I have many environments (dont ask) and I map them to common ones.
from bugsnag-laravel.
It looks like we forgot to tag release 1.0.4 and that was the release that had the notifyreleasestages in. If you were using a tagged version can I suggest upgrading to 1.0.4 and trying again?
Apologies for that!
from bugsnag-laravel.
Thanks @snmaynard that did the trick! My composer.json was using "1.*" as the version so my current vendor folder had 1.0.3. Composer update bumped that up to 1.0.4, so I should be good now.
Thanks.
from bugsnag-laravel.
Great, glad that fixed it for you!
from bugsnag-laravel.
Related Issues (20)
- Prepare for Laravel 9 support HOT 5
- Ignore Exceptions in Laravel HOT 2
- Fails composer install for Laravel 9 HOT 2
- Laravel service provider: config is null HOT 7
- Updating minor version HOT 1
- setMetaData doesn't clear between horizon jobs HOT 2
- Unable to create configured logger HOT 6
- PHP Fatal error: Declaration of Bugsnag\PsrLogger\BugsnagLogger::log HOT 4
- Vulnerable versions of Akaunting and Bookstack packages are used HOT 2
- Bugsnag Shows js stack trace and php error codes but no php stacktrace. HOT 2
- Delay session delivery to "after the response is sent" HOT 1
- Error with PHP8.1, Laravel 9.x HOT 2
- laravel 10 compatibility HOT 2
- Update to Laravel 10 HOT 1
- Integrate with Pennant feature flags HOT 1
- [OomBootstrapper] BindingResolutionException: Target class [bugsnag] does not exist. HOT 3
- Ability to cancel error notifications before they are sent to Bugsnag HOT 1
- How to set app version automatically? HOT 4
- Exceptions in failed Jobs running in queue worker aren't reported to bugsnag. HOT 6
- Support for Laravel 11's Context HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugsnag-laravel.