1
0
Fork 0
mirror of synced 2025-04-02 21:36:14 +03:00

Change log identifier generation

This commit is contained in:
Alex Komarichev 2024-09-20 13:21:34 +03:00
parent 11ce4ab60a
commit 38f0a0c0a4

View file

@ -98,7 +98,7 @@ if (!class_exists('WC_Retailcrm_Logger') && class_exists('WC_Log_Levels')) :
private static function getIdentifier(): string
{
if (empty(static::$logIdentifier)) {
static::$logIdentifier = substr(uniqid('', false), -8);
static::$logIdentifier = substr(wp_generate_uuid4(), 0, 8);
}
return static::$logIdentifier;