Plugin log phase is being triggered twice

I have some custom plugins of which auditlog and Heracles-mertic(responsible for extracting different metrics) are getting their log phase triggered twice. This is happening after we upgraded from kong 2.8 to 3.4.2. Here you can see the repeated logs for reference. The logs are for a single request.