Skip to content

Commit

Permalink
fix: do not use winston logger in contants files as they´re also used…
Browse files Browse the repository at this point in the history
… on client side
  • Loading branch information
olzzon committed Dec 30, 2019
1 parent e86a297 commit fb2d847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/constants/mixerProtocols/casparCGMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ICasparCGMixerGeometry, ICasparCGMixerGeometryFile, emptyMixerMessage }
const fs = require('fs')
import * as os from 'os';
import * as path from 'path';
import { logger } from '../../utils/logger';

const CONFIG_FILE_NAME = 'sisyfos-casparcg-geometry.json';
const geometryFile = path.join(os.homedir(), CONFIG_FILE_NAME);
Expand All @@ -17,7 +16,8 @@ try {
geometry = inputObj
}
} catch (e) {
logger.info('CasparCG Audio geometry file has not been created', {})
// Handling a file should be removed from Constants in the future:
console.log('CasparCG Audio geometry file has not been created')
}

let CasparCGMasterObject: ICasparCGMixerGeometry | undefined = undefined
Expand Down

0 comments on commit fb2d847

Please sign in to comment.