BrianRosamilia / azure-function-log-intercept

Add console.log support to Azure Functions
27 stars 2 forks source link

In timer trigger azure function, main function is being called twice #10

Closed Khushboo-Mulani closed 2 years ago

Khushboo-Mulani commented 3 years ago

in index.js for timer azure function,

module.exports = async function (context, myTimer) { intercept(context); if (myTimer.IsPastDue) { console.log('myTimeris running late!'); } console.log("myTimer scheduler just ran!") };

Getting every log twice while using "intercept(context)", this is totally strange!

BrianRosamilia commented 2 years ago

hey, this was a breaking change and is being tracked in #11

I didn't completely understand what you were saying and I didn't realize the issue was only locally. Sorry!