arrivals-osx
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -77,2 +77,15 @@ var fs = require('fs'); | ||
var logFile = process.env['LOG_FILE']; | ||
var logType = process.env['LOG_TYPE']; | ||
var logLevel = process.env['LOG_LEVEL']; | ||
if (logType === 'file') { | ||
bole.output({ level: logLevel, stream: boleFile(logFile) }); | ||
} else { | ||
var boleConsoleStream = boleConsole({ timestamp: true }); | ||
bole.output({ level: logLevel, stream: boleConsoleStream }); | ||
} | ||
log.debug('Starting...'); | ||
var cwd = process.env['CWD']; | ||
@@ -91,6 +104,10 @@ | ||
log.debug('Watching paths', watchPaths); | ||
var videoDestination = process.env['VIDEO_DESTINATION']; | ||
log.debug('Video destination', videoDestination); | ||
assert(videoDestination && fs.statSync(videoDestination).isDirectory(), 'Video destination path must exist and be a directory'); | ||
var audioDestination = process.env['AUDIO_DESTINATION']; | ||
log.debug('Audio destination', audioDestination); | ||
assert(audioDestination && fs.statSync(audioDestination).isDirectory(), 'Audio destination path must exist and be a directory'); | ||
@@ -100,13 +117,2 @@ | ||
var logFile = process.env['LOG_FILE']; | ||
var logType = process.env['LOG_TYPE']; | ||
var logLevel = process.env['LOG_LEVEL']; | ||
if (logType === 'file') { | ||
bole.output({ level: logLevel, stream: boleFile(logFile) }); | ||
} else { | ||
var boleConsoleStream = boleConsole({ timestamp: true }); | ||
bole.output({ level: logLevel, stream: boleConsoleStream }); | ||
} | ||
var db = levelup(process.env['DB_PATH']); | ||
@@ -113,0 +119,0 @@ |
{ | ||
"name": "arrivals-osx", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Watch a folder for audio and video arrivals and convert them to Apple-friendly formats.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/arrivals.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32733
685