I recently updated my node to 7.2.1 and noticed that there is a warning coming:html
(node:4346) DeprecationWarning: Calling an asynchronous function without callback is deprecated.node
What is this 4346
for? I only have 2000 lines in the js file, so it can't be a line-number. Where can I find the code?api
==app
You can use either the --trace-deprecation
or --throw-deprecation
options.async
For example:this
node --trace-deprecation app.js
or:spa
node --throw-deprecation app.js
The first option will log a stack trace and the second will throw an error (which, if not caught, will also log a stack trace).code
Also, 4346
is most likely the process ID.htm
https://stackoverflow.com/questions/41195580/deprecationwarning-calling-an-asynchronous-function-without-callback-is-depreca/41195755get