I recently updated my node to 7.2.1 and noticed that there is a warning coming:
(node:4346) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
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?
==
You can use either the --trace-deprecation
or --throw-deprecation
options.
For example:
node --trace-deprecation app.js
or:
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).
Also, 4346
is most likely the process ID.
https://stackoverflow.com/questions/41195580/deprecationwarning-calling-an-asynchronous-function-without-callback-is-depreca/41195755