File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
3+ const buyan = require ( 'bunyan' ) ;
34const yargs = require ( 'yargs' ) ;
45const path = require ( 'path' ) ;
56
@@ -131,6 +132,7 @@ function startFtpServer(_state) {
131132 }
132133
133134 const ftpServer = new FtpSrv ( {
135+ log : buyan . createLogger ( { name : 'ftp-srv' } ) ,
134136 url : _state . url ,
135137 pasv_url : _state . pasv_url ,
136138 pasv_min : _state . pasv_min ,
Original file line number Diff line number Diff line change 11const _ = require ( 'lodash' ) ;
22const Promise = require ( 'bluebird' ) ;
33const nodeUrl = require ( 'url' ) ;
4- const buyan = require ( 'bunyan' ) ;
54const net = require ( 'net' ) ;
65const tls = require ( 'tls' ) ;
76const EventEmitter = require ( 'events' ) ;
@@ -13,7 +12,7 @@ class FtpServer extends EventEmitter {
1312 constructor ( options = { } ) {
1413 super ( ) ;
1514 this . options = Object . assign ( {
16- log : buyan . createLogger ( { name : 'ftp-srv' } ) ,
15+ log : console ,
1716 url : 'ftp://127.0.0.1:21' ,
1817 pasv_min : 1024 ,
1918 pasv_max : 65535 ,
You can’t perform that action at this time.
0 commit comments