normalize use of .info (INFO) instead of .succ (DONE) logging

This commit is contained in:
Hazelnoot 2025-05-22 10:34:27 -04:00
parent 8e30744bb9
commit e9eaafae41
13 changed files with 27 additions and 27 deletions

View file

@ -87,6 +87,6 @@ export class AggregateRetentionProcessorService {
});
}
this.logger.succ('Retention aggregated.');
this.logger.info('Retention aggregated.');
}
}

View file

@ -37,6 +37,6 @@ export class BakeBufferedReactionsProcessorService {
await this.reactionsBufferingService.bake();
this.logger.succ('All buffered reactions baked.');
this.logger.info('All buffered reactions baked.');
}
}

View file

@ -41,6 +41,6 @@ export class CheckExpiredMutingsProcessorService {
await this.userMutingService.unmute(expired);
}
this.logger.succ('All expired mutings checked.');
this.logger.info('All expired mutings checked.');
}
}

View file

@ -62,6 +62,6 @@ export class CleanChartsProcessorService {
await this.perUserDriveChart.clean();
await this.apRequestChart.clean();
this.logger.succ('All charts successfully cleaned.');
this.logger.info('All charts successfully cleaned.');
}
}

View file

@ -69,6 +69,6 @@ export class CleanProcessorService {
this.reversiService.cleanOutdatedGames();
this.logger.succ('Cleaned.');
this.logger.info('Cleaned.');
}
}

View file

@ -75,6 +75,6 @@ export class CleanRemoteFilesProcessorService {
await job.updateProgress(100 / total * deletedCount);
}
this.logger.succ(`All cached remote files processed. Total deleted: ${deletedCount}, Failed: ${errorCount}.`);
this.logger.info(`All cached remote files processed. Total deleted: ${deletedCount}, Failed: ${errorCount}.`);
}
}

View file

@ -128,7 +128,7 @@ export class DeleteAccountProcessorService {
userId: user.id,
});
this.logger.succ('All clips have been deleted.');
this.logger.info('All clips have been deleted.');
}
{ // Delete favorites
@ -136,7 +136,7 @@ export class DeleteAccountProcessorService {
userId: user.id,
});
this.logger.succ('All favorites have been deleted.');
this.logger.info('All favorites have been deleted.');
}
{ // Delete user relations
@ -172,7 +172,7 @@ export class DeleteAccountProcessorService {
muteeId: user.id,
});
this.logger.succ('All user relations have been deleted.');
this.logger.info('All user relations have been deleted.');
}
{ // Delete reactions
@ -206,7 +206,7 @@ export class DeleteAccountProcessorService {
}
}
this.logger.succ('All reactions have been deleted');
this.logger.info('All reactions have been deleted');
}
{ // Poll votes
@ -238,7 +238,7 @@ export class DeleteAccountProcessorService {
});
}
this.logger.succ('All poll votes have been deleted');
this.logger.info('All poll votes have been deleted');
}
{ // Delete scheduled notes
@ -254,7 +254,7 @@ export class DeleteAccountProcessorService {
userId: user.id,
});
this.logger.succ('All scheduled notes deleted');
this.logger.info('All scheduled notes deleted');
}
{ // Delete notes
@ -312,7 +312,7 @@ export class DeleteAccountProcessorService {
}
}
this.logger.succ('All of notes deleted');
this.logger.info('All of notes deleted');
}
{ // Delete files
@ -341,7 +341,7 @@ export class DeleteAccountProcessorService {
}
}
this.logger.succ('All of files deleted');
this.logger.info('All of files deleted');
}
{ // Delete actor logs
@ -353,7 +353,7 @@ export class DeleteAccountProcessorService {
await this.apLogService.deleteInboxLogs(user.id)
.catch(err => this.logger.error(err, `Failed to delete AP logs for user '${user.uri}'`));
this.logger.succ('All AP logs deleted');
this.logger.info('All AP logs deleted');
}
// Do this BEFORE deleting the account!
@ -379,7 +379,7 @@ export class DeleteAccountProcessorService {
await this.usersRepository.delete(user.id);
}
this.logger.succ('Account data deleted');
this.logger.info('Account data deleted');
}
{ // Send email notification

View file

@ -74,6 +74,6 @@ export class DeleteDriveFilesProcessorService {
job.updateProgress(deletedCount / total);
}
this.logger.succ(`All drive files (${deletedCount}) of ${user.id} has been deleted.`);
this.logger.info(`All drive files (${deletedCount}) of ${user.id} has been deleted.`);
}
}

View file

@ -36,6 +36,6 @@ export class ResyncChartsProcessorService {
await this.notesChart.resync();
await this.usersChart.resync();
this.logger.succ('All charts successfully resynced.');
this.logger.info('All charts successfully resynced.');
}
}

View file

@ -62,6 +62,6 @@ export class TickChartsProcessorService {
await this.perUserDriveChart.tick(false);
await this.apRequestChart.tick(false);
this.logger.succ('All charts successfully ticked.');
this.logger.info('All charts successfully ticked.');
}
}