Skip to content

Commit 5ed1b79

Browse files
committed
refactor: remove unnecessary console logs from song services and utility
1 parent 1be83fb commit 5ed1b79

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

server/src/song/song-upload/song-upload.service.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,6 @@ describe('SongUploadService', () => {
393393

394394
const buffer = songTest.toArrayBuffer();
395395

396-
console.log(fromArrayBuffer(buffer).length);
397-
398396
const song = songUploadService.getSongObject(buffer); //TODO: For some reason the song is always empty
399397

400398
expect(song).toBeInstanceOf(Song);

server/src/song/song-webhook/song-webhook.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class SongWebhookService implements OnModuleInit {
5050

5151
const data = await response.json();
5252

53-
this.logger.log(`Posted webhook message for song ${song.publicId}`);
53+
//this.logger.log(`Posted webhook message for song ${song.publicId}`);
5454
return data.id; // Discord message ID
5555
} catch (e) {
5656
this.logger.error('Error sending Discord webhook', e);

server/src/song/song.util.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ export function getUploadDiscordEmbed({
4444
license,
4545
stats,
4646
}: SongWithUser) {
47-
console.log(Number('0x' + thumbnailData.backgroundColor.replace('#', '')));
48-
4947
let fieldsArray = [];
5048

5149
if (originalAuthor) {

0 commit comments

Comments
 (0)