Skip to content

Commit 0523da3

Browse files
committed
remove logging
1 parent 4484574 commit 0523da3

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ http.createServer(function (request, response) {
110110

111111
var queryObject = querystring.parse(urlParts.query);
112112

113-
console.log(queryObject);
113+
//console.log(queryObject);
114114

115115
if (typeof queryObject !== 'undefined' && queryObject.trackId !== 'undefined' && queryObject.trackFormat !== 'undefined') {
116116

library/audioDataAnalyzer.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ analyzer.prototype.getData = function getDataFunction(trackPath, callback) {
5050

5151
ffprobeSpawn.stdout.on('end', function(data) {
5252

53-
console.log('ffprobeSpawn stdout end');
53+
//console.log('ffprobeSpawn stdout end');
5454

5555
if (stdoutOuputString !== '') {
5656

@@ -85,13 +85,13 @@ analyzer.prototype.getData = function getDataFunction(trackPath, callback) {
8585

8686
ffprobeSpawn.stderr.on('end', function() {
8787

88-
console.log('ffprobeSpawn stderr end');
88+
//console.log('ffprobeSpawn stderr end');
8989

9090
});
9191

9292
ffprobeSpawn.on('exit', function(code) {
9393

94-
console.log('ffprobeSpawn exit, code: ' + code);
94+
//console.log('ffprobeSpawn exit, code: ' + code);
9595

9696
// if the code is an error code
9797
if (code > 0) {
@@ -123,7 +123,7 @@ analyzer.prototype.getData = function getDataFunction(trackPath, callback) {
123123

124124
ffprobeSpawn.on('close', function() {
125125

126-
console.log('ffprobeSpawn close');
126+
//console.log('ffprobeSpawn close');
127127

128128
});
129129

@@ -208,7 +208,7 @@ analyzer.prototype.getPeaks = function getValuesFunction(trackPath, peaksAmountR
208208

209209
ffmpegSpawn.stdout.on('end', function(data) {
210210

211-
console.log('ffmpegSpawn stdout end');
211+
//console.log('ffmpegSpawn stdout end');
212212

213213
var samplesLength = samples.length;
214214

@@ -296,19 +296,19 @@ analyzer.prototype.getPeaks = function getValuesFunction(trackPath, peaksAmountR
296296

297297
ffmpegSpawn.stderr.on('end', function() {
298298

299-
console.log('ffmpegSpawn stderr end');
299+
//console.log('ffmpegSpawn stderr end');
300300

301301
});
302302

303303
ffmpegSpawn.on('exit', function(code) {
304304

305-
console.log('ffmpegSpawn exit, code: ' + code);
305+
//console.log('ffmpegSpawn exit, code: ' + code);
306306

307307
});
308308

309309
ffmpegSpawn.on('close', function() {
310310

311-
console.log('ffmpegSpawn close');
311+
//console.log('ffmpegSpawn close');
312312

313313
});
314314

library/directoryManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var directoryManager = function directoryManagerConstructor() {
2121
*/
2222
directoryManager.prototype.exists = function directoryExistsFunction(directory, callback) {
2323

24-
console.log('directory exists? directory: ' + directory);
24+
//console.log('directory exists? directory: ' + directory);
2525

2626
if (callback !== undefined) {
2727

@@ -66,7 +66,7 @@ directoryManager.prototype.exists = function directoryExistsFunction(directory,
6666
*/
6767
directoryManager.prototype.create = function createDirectoryFunction(directory, callback) {
6868

69-
console.log('create directory: ' + directory);
69+
//console.log('create directory: ' + directory);
7070

7171
if (callback !== undefined) {
7272

library/fileDownloader.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ downloader.prototype.downloadIfNotExists = function downloadIfNotExists(options,
141141
*/
142142
downloader.prototype.downloadFile = function downloadFileFunction(downloadOptions, callback) {
143143

144-
console.log('downloadFile: ' + downloadOptions.fileName);
144+
//console.log('downloadFile: ' + downloadOptions.fileName);
145145

146146
if (downloadOptions === undefined) {
147147

@@ -189,13 +189,13 @@ downloader.prototype.downloadFile = function downloadFileFunction(downloadOption
189189
method: downloadOptions.method
190190
};
191191

192-
console.log(requestOptions);
192+
//console.log(requestOptions);
193193

194194
// request the file from remote server
195195
var httpRequest = http.request(requestOptions, function(httpResponse) {
196196

197-
console.log('writeTrackToDisc httpRequest STATUS: ' + httpResponse.statusCode);
198-
console.log('writeTrackToDisc httpRequest HEADERS: ' + JSON.stringify(httpResponse.headers));
197+
//console.log('writeTrackToDisc httpRequest STATUS: ' + httpResponse.statusCode);
198+
//console.log('writeTrackToDisc httpRequest HEADERS: ' + JSON.stringify(httpResponse.headers));
199199

200200
// on successful request
201201
httpResponse.on('data', function(chunk) {
@@ -208,7 +208,7 @@ downloader.prototype.downloadFile = function downloadFileFunction(downloadOption
208208
// the connection got closed
209209
httpResponse.on('end', function() {
210210

211-
console.log('remote file: ' + downloadOptions.fileName + ', got downloaded into: ' + downloadOptions.serverDirectory);
211+
//console.log('remote file: ' + downloadOptions.fileName + ', got downloaded into: ' + downloadOptions.serverDirectory);
212212

213213
// close the write stream
214214
writeStream.end();
@@ -222,7 +222,7 @@ downloader.prototype.downloadFile = function downloadFileFunction(downloadOption
222222
// the request to the remote server failed
223223
httpRequest.on('error', function(error) {
224224

225-
console.log('writeToDisc, http request error: ' + error.message);
225+
//console.log('writeToDisc, http request error: ' + error.message);
226226

227227
writeStream.end();
228228

@@ -237,7 +237,7 @@ downloader.prototype.downloadFile = function downloadFileFunction(downloadOption
237237
// writing the file failed
238238
writeStream.on('error', function(error) {
239239

240-
console.log('writeToDisc writeStream, error: ' + error);
240+
//console.log('writeToDisc writeStream, error: ' + error);
241241

242242
// close the stream
243243
writeStream.end();

library/fileManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var fileManager = function fileManagerConstructor() {
2121
*/
2222
fileManager.prototype.exists = function fileExistsFunction(file, callback) {
2323

24-
console.log('file exists? file: ' + file);
24+
//console.log('file exists? file: ' + file);
2525

2626
if (callback !== undefined) {
2727

0 commit comments

Comments
 (0)