Anvil repeats same log entries

Ever since Anvil improved the App Session and made them faster, I have experienced log entries being repeated. Every log is displayed two times.

As can be seen in the above screenshot, Read Commands is displayed two times whereas the number above still shows as one.

I am not seeing this in my apps.

Do you have a clone link or code snippet of the entire function where this is printed.
My guess is that the function where this is is being called multiple times.

To identify this you can use anvil_extras @timed decorator above the function as it gives you a lot of useful information.

Alternatively if this is in a function that is called by an event, you could print the event_args['sender']

1 Like

This isn’t with the particular function. I see this with every log entry.

You can also see that the number shows that there should only be one entry. So this seems like a problem with Anvil. Although I just now noticed that this only appears with one of my apps.

So if Anvil wants to check it further, I can provide my App ID and other details privately.