stripe_official icon indicating copy to clipboard operation
stripe_official copied to clipboard

ps_stripe_official_processlogger become huge

Open williambamps opened this issue 2 years ago • 5 comments

Hi guyz ! On my PS 1.7 the table ps_stripe_official_processlogger grow up around 500Mb each month, its look like the data stored are only info level log... Could it be possible to have a parameters to manager de log storage ? In production we want to log only errors, not info. Instead of that, could we clean this table every days ?

Thanks !

williambamps avatar Nov 16 '22 08:11 williambamps

Hi, You have an interface at this URL https://domain.tld/adminXYZ/index.php?controller=AdminStripe_officialProcessLogger&configure=stripe_official

You can try to manage these three parameters: image

Quiet mod: log only level error.

I understand, autoerasing doesn't work properly on your PrestaShop (it sould be the default value: 5 days). If you have a idea of this issue, we can create a PR to fix it.

Thanks

clotairer avatar Nov 16 '22 11:11 clotairer

Hi, Thanks for your quick reply There is a way to access this page without know the URL ? What do you mean by "log only level error." ? Indeed auto erasing don't work but I don't have any ideas why.. PS ring on Ubuntu, Apache, PHP 7.4 . Classic LAMP install

williambamps avatar Nov 16 '22 11:11 williambamps

There is a way to access this page without know the URL ?

Unfortunately not. A basic product "dissension"... But this view is very useful for our support team.

What do you mean by "log only level error." ?

You have 3 levels in the column "Level" in this array: success, info (verbose logs) and error.

Indeed auto erasing don't work but I don't have any ideas why.. PS ring on Ubuntu, Apache, PHP 7.4 . Classic LAMP install

Perhaps you can try to save the once the configuration form and see if new logs remove older logs (issue during the initialization of the configuration?). Note, if you have 500M... of logs, the first time can be long.

clotairer avatar Nov 16 '22 12:11 clotairer

index.php?controller=AdminStripe_officialProcessLogger&configure=stripe_official

i've the same problem, the log is not deleting at all. not working in 1.7.6.9 and 1.7.8.7 too

module version 2.4.6

Please add a button in stripe Backoffice to access the log page and parameters! thanks

HartLarsson avatar Dec 02 '22 10:12 HartLarsson

A fix will be add in 2.5.1

clotairer avatar Dec 02 '22 17:12 clotairer

After years of hard work with Stripe connector for PrestaShop, 202 ecommerce will stop developping Stripe module on January 9th 2023. After this date, merchants will get support directly

202-ecommerce avatar Jan 06 '23 11:01 202-ecommerce