diff --git a/simple-glitchtip.php b/simple-glitchtip.php new file mode 100644 index 0000000..8101b2d --- /dev/null +++ b/simple-glitchtip.php @@ -0,0 +1,66 @@ + +
+

Simple Glitchtip Settings

+
+ + + + + + + +
DSN
+ +
+
+ registerExceptionHandler(); + $error_handler->registerErrorHandler(); + $error_handler->registerShutdownFunction(); +} + +// Initialize the plugin +function sg_initialize_plugin() { + $dsn = getenv('SENTRY_DSN') ?: getenv('GLITCHTIP_DSN') ?: get_option('sg_dsn'); + if ($dsn) { + sg_initialize_error_handler($dsn); + } +} +add_action('plugins_loaded', 'sg_initialize_plugin'); diff --git a/simple-status.php b/simple-status.php deleted file mode 100644 index a92c3e7..0000000 --- a/simple-status.php +++ /dev/null @@ -1,16 +0,0 @@ -