mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
feat: re-emit REST debug logs (#10782)
This commit is contained in:
@@ -115,7 +115,7 @@ export class REST extends AsyncEventEmitter<RestEvents> {
|
||||
sweptHashes.set(key, val);
|
||||
|
||||
// Emit debug information
|
||||
this.emit(RESTEvents.Debug, `Hash ${val.value} for ${key} swept due to lifetime being exceeded`);
|
||||
this.emit(RESTEvents.Debug, `[REST] Hash ${val.value} for ${key} swept due to lifetime being exceeded`);
|
||||
}
|
||||
|
||||
return shouldSweep;
|
||||
@@ -140,7 +140,7 @@ export class REST extends AsyncEventEmitter<RestEvents> {
|
||||
// Collect inactive handlers
|
||||
if (inactive) {
|
||||
sweptHandlers.set(key, val);
|
||||
this.emit(RESTEvents.Debug, `Handler ${val.id} for ${key} swept due to being inactive`);
|
||||
this.emit(RESTEvents.Debug, `[REST] Handler ${val.id} for ${key} swept due to being inactive`);
|
||||
}
|
||||
|
||||
return inactive;
|
||||
|
||||
Reference in New Issue
Block a user