riasvdv / statamic-redirect

Redirect allows you to redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
https://statamic.com/addons/rias/redirect
19 stars 21 forks source link

Cleaning up Errors #142

Closed lokmanm closed 7 months ago

lokmanm commented 7 months ago

Hey!

We disabled logging of errors and hits in one of our sites as it got huge and they didn't seem to clean up.

I tried running: php artisan redirect:clean-errors but I got this:

production.ERROR: Database connection [redirect] not configured. {"exception":"[object] (InvalidArgumentException(code: 0): Database connection [redirect] not configured. at /home/forge/site-here/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:173)

I see an SQLite db in the storage folder.

Is there any way we can clean up these errors by hand?

Thanks!

riasvdv commented 7 months ago

You can delete the file and it should be recreated automatically!

riasvdv commented 7 months ago

You can also enable logging again with the statamic.redirect.log_errors config setting and run the clean command and afterwards disable logging again.