better error handling and reporting for debugging

Registered by Ferdinand

currently (V5) lines starting with
ERROR:web-services:[01]
are reported in the client as "Details"

IMHO th reason for this failure should be reported - which is usually a SQL or XML error and looks like
ERROR:init:The XML file does not fit the required schema !
ERROR:init:<string>:76:0:ERROR:RELAXNGV:RELAXNG_ERR_ .....

AND a few lines before this error
INFO:init:module dimu_code_keyword_code: loading code_keyword_code_update.xml

especially the database and server versions are missing

Ideas to solve this issue
try :
    self.critical_call(par1, par2, par3)
except :
    print >>sys.stderr, "Critical Call failed with ", par1, par2, par2
    raise

especially

Code:
self._table._columns[name]
und
self._table._inherit_fields[name]
in browse_record.__getitem__ near line 154

Code:
return (self._table_name self._id) == (other._table_name, other._id)
in browse_record.__eq__ nahe near line 234

Code:
record[f] = res2[record['id']]
in orm._read_flat nahe near line 2011

Call:
self.pool.get('ir.model.access').check(cr, user, self._name, 'create')
in orm.create near line 2360

Code:
tocreate[table][v] = vals[v]
in orm.create near line 2385

Code:
return [(r['id'], tools.ustr(r[self._rec_name])) for r in self.read(...
in orm.name_get near line 2650

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.