set log level to error
send event before updating database
check empty public key (customer not found?)