Coder Social home page Coder Social logo

Comments (5)

jaketoolson avatar jaketoolson commented on June 29, 2024

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.

jaketoolson avatar jaketoolson commented on June 29, 2024

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.

snmaynard avatar snmaynard commented on June 29, 2024

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.

chipbell4 avatar chipbell4 commented on June 29, 2024

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.

snmaynard avatar snmaynard commented on June 29, 2024

Great, glad that fixed it for you!

from bugsnag-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.