mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 01:30:44 -05:00
Improved generateUniqueBotNickname
debug logging
This commit is contained in:
parent
60d6bb1224
commit
0d2171a600
@ -94,7 +94,7 @@ export class BotNameService {
|
|||||||
// 5 attempts to generate a name, pool probably isn't big enough
|
// 5 attempts to generate a name, pool probably isn't big enough
|
||||||
const genericName = `${botGenerationDetails.side} ${this.randomUtil.getInt(100000, 999999)}`;
|
const genericName = `${botGenerationDetails.side} ${this.randomUtil.getInt(100000, 999999)}`;
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
`Failed to find unique name for: ${name} after 5 attempts, using: ${genericName}`,
|
`Failed to find unique name for: ${botRole} ${botGenerationDetails.side} after 5 attempts, using: ${genericName}`,
|
||||||
);
|
);
|
||||||
return genericName;
|
return genericName;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user