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 89846a1
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 27 deletions.
64 changes: 40 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
},
"dependencies": {
"bluebird": "^3.5.1",
"bunyan": "^1.8.12",
"ip": "^1.1.5",
"lodash": "^4.17.15",
"moment": "^2.22.1",
Expand All @@ -77,6 +76,7 @@
"@commitlint/cli": "^10.0.0",
"@commitlint/config-conventional": "^16.2.1",
"@icetee/ftp": "^1.0.2",
"bunyan": "^1.8.12",
"chai": "^4.2.0",
"condition-circle": "^2.0.2",
"eslint": "^5.14.1",
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 89846a1

Please sign in to comment.