Replace instances of cytube-common logger with jsli

This commit is contained in:
Calvin Montgomery 2017-07-02 22:38:54 -07:00
parent 00901f9cdb
commit 54045766f2
2 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import { PartitionConfig } from './partitionconfig';
import { PartitionDecider } from './partitiondecider'; import { PartitionDecider } from './partitiondecider';
import { PartitionClusterClient } from '../io/cluster/partitionclusterclient'; import { PartitionClusterClient } from '../io/cluster/partitionclusterclient';
import RedisClientProvider from 'cytube-common/lib/redis/redisclientprovider'; 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 LegacyConfig from '../config';
import path from 'path'; import path from 'path';
import { AnnouncementRefresher } from './announcementrefresher'; import { AnnouncementRefresher } from './announcementrefresher';
@ -11,6 +11,7 @@ import { RedisPartitionMapReloader } from './redispartitionmapreloader';
const PARTITION_CONFIG_PATH = path.resolve(__dirname, '..', '..', 'conf', const PARTITION_CONFIG_PATH = path.resolve(__dirname, '..', '..', 'conf',
'partitions.toml'); 'partitions.toml');
const logger = LoggerFactory.getLogger('PartitionModule');
class PartitionModule { class PartitionModule {
constructor() { constructor() {

View File

@ -1,7 +1,9 @@
import { PartitionMap } from './partitionmap'; import { PartitionMap } from './partitionmap';
import logger from 'cytube-common/lib/logger'; import { LoggerFactory } from '@calzoneman/jsli';
import { EventEmitter } from 'events'; import { EventEmitter } from 'events';
const logger = LoggerFactory.getLogger('RedisPartitionMapReloader');
class RedisPartitionMapReloader extends EventEmitter { class RedisPartitionMapReloader extends EventEmitter {
constructor(config, redisClient, subClient) { constructor(config, redisClient, subClient) {
super(); super();