phptek / silverstripe-sentry

Flexible Sentry compatible bug aggregation client for Silverstripe applications.
BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

Nothing reported #55

Closed Firesphere closed 3 years ago

Firesphere commented 3 years ago

I have my yml set up on a Silverstripe 3 website like so:

phptek\Sentry\Adaptor\SentryClientAdaptor:
  opts:
    # Example DSN only. Obviously you'll need to setup your own Sentry "Project"
    dsn: https://dsn-domain@here.io
PhpTek\Sentry\Handler\SentryHandler:
  # One of the permitted severities: DEBUG|INFO|WARNING|ERROR|FATAL
  log_level: WARNING

However, it does not seem to report anything. Did I miss a step?

phptek commented 3 years ago

Hmmmm I haven't tested this on a v3 site for a long time. Can you give an example of the type of error you're expecting to see? Is it an exception? What happens if you mess about with log_level? Off the top of my head, a log_level of WARNING should get you messages of E_WARN or greater. Sorry, my PHP is a bit rusty atm.

Firesphere commented 3 years ago

I'm not really sure, removing the log_level setting etc. doesn't do anything, it's simply not hitting Sentry :/

Firesphere commented 3 years ago

I have a feeling I know why this is... Probably php 7.4 is prohibiting it from working.

Any reason why it shouldn't work on 7.4?

Firesphere commented 3 years ago

Nope, I'm just dumb.