diff --git a/src/partition/partitionmodule.js b/src/partition/partitionmodule.js index 52a74bab..ab738088 100644 --- a/src/partition/partitionmodule.js +++ b/src/partition/partitionmodule.js @@ -3,7 +3,7 @@ import { PartitionConfig } from './partitionconfig'; import { PartitionDecider } from './partitiondecider'; import { PartitionClusterClient } from '../io/cluster/partitionclusterclient'; import RedisClientProvider from 'cytube-common/lib/redis/redisclientprovider'; -import logger from 'cytube-common/lib/logger'; +import { LoggerFactory } from '@calzoneman/jsli'; import LegacyConfig from '../config'; import path from 'path'; import { AnnouncementRefresher } from './announcementrefresher'; @@ -11,6 +11,7 @@ import { RedisPartitionMapReloader } from './redispartitionmapreloader'; const PARTITION_CONFIG_PATH = path.resolve(__dirname, '..', '..', 'conf', 'partitions.toml'); +const logger = LoggerFactory.getLogger('PartitionModule'); class PartitionModule { constructor() { diff --git a/src/partition/redispartitionmapreloader.js b/src/partition/redispartitionmapreloader.js index a4eddc94..6dfa23db 100644 --- a/src/partition/redispartitionmapreloader.js +++ b/src/partition/redispartitionmapreloader.js @@ -1,7 +1,9 @@ import { PartitionMap } from './partitionmap'; -import logger from 'cytube-common/lib/logger'; +import { LoggerFactory } from '@calzoneman/jsli'; import { EventEmitter } from 'events'; +const logger = LoggerFactory.getLogger('RedisPartitionMapReloader'); + class RedisPartitionMapReloader extends EventEmitter { constructor(config, redisClient, subClient) { super();