Skip to content

Commit

Permalink
feat: remove the need of buyan logger in src/index.js
Browse files Browse the repository at this point in the history
as buyan can not be consumed by webpack
  • Loading branch information
lygstate committed Aug 24, 2024
1 parent 42d4a2d commit 9a09651
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node

const buyan = require('bunyan');
const yargs = require('yargs');
const path = require('path');

Expand Down Expand Up @@ -131,6 +132,7 @@ function startFtpServer(_state) {
}

const ftpServer = new FtpSrv({
log: buyan.createLogger({name: 'ftp-srv'}),
url: _state.url,
pasv_url: _state.pasv_url,
pasv_min: _state.pasv_min,
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const _ = require('lodash');
const Promise = require('bluebird');
const nodeUrl = require('url');
const buyan = require('bunyan');
const net = require('net');
const tls = require('tls');
const EventEmitter = require('events');
Expand All @@ -13,7 +12,7 @@ class FtpServer extends EventEmitter {
constructor(options = {}) {
super();
this.options = Object.assign({
log: buyan.createLogger({name: 'ftp-srv'}),
log: console,
url: 'ftp://127.0.0.1:21',
pasv_min: 1024,
pasv_max: 65535,
Expand Down

0 comments on commit 9a09651

Please sign in to comment.