am_web_handle_notification() generates logging messages for the event and any error that may occur during the processing of the notification.