Event listener not firing when running command with --no-debug

Hi,

I have a command that is importing data, including images, from a web service.

I also have an event listener which is listening for onAssetPreAdd

The listener just calculates the approximate brightness of an image and stores that value in a custom metadata field.

All of this works fine when I run the command without the –no-debug flag but it is noticeably slower.

When I run the command with the –no-debug flag the event listener never fires.

Is that normal behaviour for event listeners?

Any assistance would be most appreciated.

Thanks.