trendscenter / nodeapi

node based API for COINS
MIT License
0 stars 2 forks source link

API crashes on ENTER via stdin #56

Closed cdaringe closed 8 years ago

cdaringe commented 8 years ago

loading the api then hitting the ENTER key produces the following.

cdieringer@Snapper-osx:~/node/nodeapi$ node dist/ -c
Running with COINS_ENV: development
Including New Relic agent
New Relic agent reporting disabled
Using default dbmap.json
Including COINSTAC routes
160115/112819.594, [log,startup], data: server running at: http://Snapper-osx:8800

/Users/cdieringer/node/nodeapi/dist/index.js:94
    server.plugins.logger.logError(['stderr'], data);
                         ^

TypeError: Cannot read property 'logError' of undefined
    at WriteStream.<anonymous> (/Users/cdieringer/node/nodeapi/dist/index.js:94:26)
    at emitOne (events.js:77:13)
    at WriteStream.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at WriteStream.Readable.push (_
cdaringe commented 8 years ago

fixed it :)