def get_more_info_for_log():
 more_info = []
 site = getattr(frappe.local, u'site', None)
 if site:
  more_info.append(u'Site: {0}'.format(site))
 form_dict = getattr(frappe.local, u'form_dict', None)
 if form_dict:
  more_info.append(u'Form Dict: {0}'.format(frappe.as_json(form_dict)))
 if more_info:
  more_info = (more_info + [u''])
 return u'\n'.join(more_info)

def get_more_info_for_log ( ) : more_info = [ ] site = getattr ( frappe . local , u'site' , None ) if site : more_info . append ( u'Site: {0}' . format ( site ) ) form_dict = getattr ( frappe . local , u'form_dict' , None ) if form_dict : more_info . append ( u'Form Dict: {0}' . format ( frappe . as_json ( form_dict ) ) ) if more_info : more_info = ( more_info + [ u'' ] ) return u'\n' . join ( more_info )
adds site .