Skip to content

Commit

Permalink
Disable Innertube log
Browse files Browse the repository at this point in the history
  • Loading branch information
HitomaruKonpaku committed May 19, 2024
1 parent c617f9e commit 920d3c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/youtube/src/service/innertube.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common'
import Bottleneck from 'bottleneck'
import Innertube from 'youtubei.js'
import { Innertube, Log } from 'youtubei.js'
import {
CompactVideo,
GridVideo,
Expand Down Expand Up @@ -33,7 +33,9 @@ export class InnertubeService {

constructor(
private readonly youtubeChannelRepository: YoutubeChannelRepository,
) { }
) {
Log.setLevel(Log.Level.NONE)
}

public async getChannel(channelId: string, hasMembership = false) {
let channel: Channel
Expand Down

0 comments on commit 920d3c5

Please sign in to comment.