From 46fd14383a3166779fc9b06d26f2b53b76cd2e45 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Sat, 30 Dec 2023 14:36:41 +0900 Subject: [PATCH] chore: add logs --- app/scripts/content/channe-grouper.ts | 3 +++ app/scripts/content/channel-observer.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/app/scripts/content/channe-grouper.ts b/app/scripts/content/channe-grouper.ts index e50b641..1e21d2c 100644 --- a/app/scripts/content/channe-grouper.ts +++ b/app/scripts/content/channe-grouper.ts @@ -3,6 +3,7 @@ import $ from 'jquery/dist/jquery.slim'; import 'requestidlecallback-polyfill'; import * as domConstants from './dom-constants'; import { DATA_KEY_CHANNEL_NAME, DATA_KEY_CHANNEL_PREFIX, DATA_KEY_RAW_CHANNEL_NAME } from './dom-constants'; +import { logger } from './logger'; // constants const CHANNEL_NAME_ROOT = '-/'; @@ -44,6 +45,8 @@ export default class ChannelGrouper { } protected groupingAllByPrefix(): void { + logger.labeledLog('Grouping all by prefix'); + const $channelItems = $(domConstants.SELECTOR_CHANNEL_LIST_ITEMS); if ($channelItems.length === 0) { diff --git a/app/scripts/content/channel-observer.ts b/app/scripts/content/channel-observer.ts index 5128a5f..5fe17aa 100644 --- a/app/scripts/content/channel-observer.ts +++ b/app/scripts/content/channel-observer.ts @@ -35,6 +35,7 @@ export default class ChannelObserver extends EventEmitter<'update'> { } protected emitUpdate(): void { + logger.labeledLog('Emit update event'); this.emit('update'); }