Change log identifier generation
This commit is contained in:
parent
11ce4ab60a
commit
38f0a0c0a4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue