@@ -141,7 +141,7 @@ downloader.prototype.downloadIfNotExists = function downloadIfNotExists(options,
141141 */
142142downloader . 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 ( ) ;
0 commit comments