Logging to debug account upgrade, possibly broken by WHMCS update