Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
HitomaruKonpaku committed Sep 24, 2024
1 parent 0732b70 commit 2827d17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/back-end/src/module/youtube/base/base-action-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export abstract class BaseActionHandler<T1 extends HandlerAction, T2 extends Pro
if (this.data.video.isLive && action.timestamp) {
const age = Date.now() - action.timestamp.getTime()
const maxAge = (NumberUtil.parse(process.env.YOUTUBE_ACTION_MAX_AGE) || 3600) * 1000
this.logger.warn({ age, maxAge, action })
this.logger.warn(`ACTION_TIMESTAMP | ${JSON.stringify({ age, maxAge, valid: age > maxAge, action })}`)
if (age > maxAge) {
return
// return
}
}
if (this.data.video.isMembersOnly && !track.allowMemberChat) {
Expand Down
4 changes: 3 additions & 1 deletion shared/base/base.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export abstract class BaseProcessor extends WorkerHost {

@OnWorkerEvent('drained')
onDrained() {
this.logger.debug('[DRAINED]')
if (this.debug) {
this.logger.debug('[DRAINED]')
}
}

@OnWorkerEvent('failed')
Expand Down

0 comments on commit 2827d17

Please sign in to comment.