bpaquet / node-logstash

Simple logstash implmentation in nodejs : file log collection, sent with zeromq
Other
517 stars 141 forks source link

updating zmq and nan to fix deprecation warnings #145

Open kostapsimoulis opened 7 years ago

kostapsimoulis commented 7 years ago

This update will remove some deprecation warnings such as:


Feb 22 18:50:39 ip-172-16-2-209 systemd[1]: Started node-logstash-main.service.
Feb 22 18:50:39 ip-172-16-2-209 systemd[1]: Starting node-logstash-main-1.service...
Feb 22 18:50:39 ip-172-16-2-209 systemd[1]: Started node-logstash-main-1.service.
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: (node) v8::ObjectTemplate::Set() with non-primitive values is deprecated
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: (node) and will stop working in the next major release.
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: ==== JS stack trace =========================================
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: Security context: 0x166f65acfb51 <JS Object>#0#
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 1: .node [module.js:597] [pc=0x3944f41f9304] (this=0x296ae3126a71 <an Object with map 0x24049501aca9>#1#,module=0x22718e99299 <a Module with map 0x24049501bbc9>#2#,filename=0x22718e97441 <String[73]: /opt/node-logstash/node_modules/oniguruma/build/Release/onig_scanner.node>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 2: load [module.js:487] [pc=0x3944f413f692] (this=0x22718e99299 <a Module with map 0x24049501bbc9>#2#,filename=0x22718e97441 <String[73]: /opt/node-logstash/node_modules/oniguruma/build/Release/onig_scanner.node>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 3: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x3944f413f1bd] (this=0x166f65a04381 <undefined>,module=0x22718e99299 <a Module with map 0x24049501bbc9>#2#,filename=0x22718e97441 <String[73]: /opt/node-logstash/node_modules/oniguruma/build/Release/onig_scanner.node>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 4: _load [module.js:438] [pc=0x3944f4134a62] (this=0x296ae3126af1 <JS Function Module (SharedFunctionInfo 0x39babe62c521)>#3#,request=0xcee873d83c9 <String[34]: ../build/Release/onig_scanner.node>,parent=0x22718e94111 <a Module with map 0x24049501bbc9>#4#,isMain=0x166f65a04271 <false>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 5: require [module.js:497] [pc=0x3944f4148ab3] (this=0x22718e94111 <a Module with map 0x24049501bbc9>#4#,path=0xcee873d83c9 <String[34]: ../build/Release/onig_scanner.node>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 6: require(aka require) [internal/module.js:20] [pc=0x3944f41487e6] (this=0x166f65a04381 <undefined>,path=0xcee873d83c9 <String[34]: ../build/Release/onig_scanner.node>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 7: /* anonymous */ [/opt/node-logstash/node_modules/oniguruma/lib/oniguruma.js:4] [pc=0x3944f41f8d24] (this=0x22718e94161 <an Object with map 0x366185e075e9>#5#)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 8: /* anonymous */ [/opt/node-logstash/node_modules/oniguruma/lib/oniguruma.js:65] [pc=0x3944f41f905c] (this=0x22718e94161 <an Object with map 0x366185e075e9>#5#,exports=0x22718e94161 <an Object with map 0x366185e075e9>#5#,require=0x22718e95e61 <JS Function require (SharedFunctionInfo 0x39babe6609c1)>#6#,module=0x22718e94111 <a Module with map 0x24049501bbc9>#4#,__filename=0x22718e92709 <String[58]: /opt/node-logstash/node_modules/oniguruma/lib/oniguruma.js>,__dirname=0x22718e95df9 <String[45]: /opt/node-logstash/node_modules/oniguruma/lib>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 9: _compile [module.js:570] [pc=0x3944f4146bb0] (this=0x22718e94111 <a Module with map 0x24049501bbc9>#4#,content=0x22718e94b21 <Very long string[1726]>#7#,filename=0x22718e92709 <String[58]: /opt/node-logstash/node_modules/oniguruma/lib/oniguruma.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 10: .js [module.js:579] [pc=0x3944f4140c6b] (this=0x296ae3126a71 <an Object with map 0x24049501aca9>#1#,module=0x22718e94111 <a Module with map 0x24049501bbc9>#4#,filename=0x22718e92709 <String[58]: /opt/node-logstash/node_modules/oniguruma/lib/oniguruma.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 11: load [module.js:487] [pc=0x3944f413f692] (this=0x22718e94111 <a Module with map 0x24049501bbc9>#4#,filename=0x22718e92709 <String[58]: /opt/node-logstash/node_modules/oniguruma/lib/oniguruma.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 12: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x3944f413f1bd] (this=0x166f65a04381 <undefined>,module=0x22718e94111 <a Module with map 0x24049501bbc9>#4#,filename=0x22718e92709 <String[58]: /opt/node-logstash/node_modules/oniguruma/lib/oniguruma.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 13: _load [module.js:438] [pc=0x3944f4134a62] (this=0x296ae3126af1 <JS Function Module (SharedFunctionInfo 0x39babe62c521)>#3#,request=0x296ae31caf61 <String[9]: oniguruma>,parent=0x22718e7cd29 <a Module with map 0x24049501bbc9>#8#,isMain=0x166f65a04271 <false>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 14: require [module.js:497] [pc=0x3944f4148ab3] (this=0x22718e7cd29 <a Module with map 0x24049501bbc9>#8#,path=0x296ae31caf61 <String[9]: oniguruma>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 15: require(aka require) [internal/module.js:20] [pc=0x3944f41487e6] (this=0x166f65a04381 <undefined>,path=0x296ae31caf61 <String[9]: oniguruma>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 16: /* anonymous */ [/opt/node-logstash/lib/filters/filter_grok.js:7] [pc=0x3944f41f7e16] (this=0x22718e7cd79 <an Object with map 0x366185e075e9>#9#,exports=0x22718e7cd79 <an Object with map 0x366185e075e9>#9#,require=0x22718e82731 <JS Function require (SharedFunctionInfo 0x39babe6609c1)>#10#,module=0x22718e7cd29 <a Module with map 0x24049501bbc9>#8#,__filename=0x22718e7b879 <String[45]: /opt/node-logstash/lib/filters/filter_grok.js>,__dirname=0x22718e826c9 <String[30]: /opt/node-logstash/lib/filters>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 17: _compile [module.js:570] [pc=0x3944f4146bb0] (this=0x22718e7cd29 <a Module with map 0x24049501bbc9>#8#,content=0x22718e7d6d1 <Very long string[4754]>#11#,filename=0x22718e7b879 <String[45]: /opt/node-logstash/lib/filters/filter_grok.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 18: .js [module.js:579] [pc=0x3944f4140c6b] (this=0x296ae3126a71 <an Object with map 0x24049501aca9>#1#,module=0x22718e7cd29 <a Module with map 0x24049501bbc9>#8#,filename=0x22718e7b879 <String[45]: /opt/node-logstash/lib/filters/filter_grok.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 19: load [module.js:487] [pc=0x3944f413f692] (this=0x22718e7cd29 <a Module with map 0x24049501bbc9>#8#,filename=0x22718e7b879 <String[45]: /opt/node-logstash/lib/filters/filter_grok.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 20: tryModuleLoad(aka tryModuleLoad) [module.js:446] [pc=0x3944f413f1bd] (this=0x166f65a04381 <undefined>,module=0x22718e7cd29 <a Module with map 0x24049501bbc9>#8#,filename=0x22718e7b879 <String[45]: /opt/node-logstash/lib/filters/filter_grok.js>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 21: _load [module.js:438] [pc=0x3944f4134a62] (this=0x296ae3126af1 <JS Function Module (SharedFunctionInfo 0x39babe62c521)>#3#,request=0x22718e7a999 <String[21]: ./filters/filter_grok>,parent=0xcee873a4b71 <a Module with map 0x24049501bbc9>#12#,isMain=0x166f65a04271 <false>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 22: require [module.js:497] [pc=0x3944f4148ab3] (this=0xcee873a4b71 <a Module with map 0x24049501bbc9>#12#,path=0x22718e7a999 <String[21]: ./filters/filter_grok>)
Feb 22 18:50:39 ip-172-16-2-209 node-logstash-main-1.service[24012]: 23: require(aka require) [internal/module.js:20] [pc=0x3944f41487e6] (this=0x166f65a04381 <undefined>,path=0x22718e7a999 <String[21]: ./filters/filter_grok>)

...```