getsentry / sentry-laravel

The official Laravel SDK for Sentry (sentry.io)
https://sentry.io
MIT License
1.25k stars 189 forks source link

Error: Call to undefined method Sentry\Options::getLoggerOrNullLogger() #912

Closed CrazyBoy49z closed 3 months ago

CrazyBoy49z commented 4 months ago

How do you use Sentry?

Self-hosted / on-premises

SDK version

4.6.1

Steps to reproduce

Send Job (ShouldQueue)

Expected result

-

Actual result

Error: Call to undefined method Sentry\Options::getLoggerOrNullLogger()

cleptric commented 4 months ago

Which Laravel version are you using? Any stacktrace you could give us?

CrazyBoy49z commented 4 months ago

Laravel 10.48.

image

CrazyBoy49z commented 4 months ago
image
name     : sentry/sentry-laravel
descrip. : Laravel SDK for Sentry (https://sentry.io)
keywords : crash-reporting, crash-reports, error-handler, error-monitoring, laravel, log, logging, profiling, sentry, tracing
versions : * 4.6.1
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://sentry.io
source   : [git] https://github.com/getsentry/sentry-laravel.git 7f5fd9f362e440c4c0c492f386b93095321f9101
dist     : [zip] https://api.github.com/repos/getsentry/sentry-laravel/zipball/7f5fd9f362e440c4c0c492f386b93095321f9101 7f5fd9f362e440c4c0c492f386b93095321f9101
path     : /var/www/**/vendor/sentry/sentry-laravel
names    : sentry/sentry-laravel

support
issues : https://github.com/getsentry/sentry-laravel/issues
source : https://github.com/getsentry/sentry-laravel/tree/4.6.1

autoload
psr-0
Sentry\Laravel\ => src/

requires
illuminate/support ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0
nyholm/psr7 ^1.0
php ^7.2 | ^8.0
sentry/sentry ^4.7
symfony/psr-http-message-bridge ^1.0 | ^2.0 | ^6.0 | ^7.0

requires (dev)
friendsofphp/php-cs-fixer ^3.11
guzzlehttp/guzzle ^7.2
laravel/folio ^1.1
laravel/framework ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0
livewire/livewire ^2.0 | ^3.0
mockery/mockery ^1.3
orchestra/testbench ^4.7 | ^5.1 | ^6.0 | ^7.0 | ^8.0 | ^9.0
phpstan/phpstan ^1.10
phpunit/phpunit ^8.4 | ^9.3 | ^10.4
CrazyBoy49z commented 4 months ago
image
CrazyBoy49z commented 4 months ago

Perhaps the problem is precisely the difference in versions, created in one and sent in another

cleptric commented 4 months ago

You are running two different SDK versions?

stayallive commented 3 months ago

I am closing this issue because of inactivity, if there is still an issue please re-open / open a new issue so we can investigate 👍