I found an error (SSL handshake failure on the c binding) where getTrace returns an empty array.
{ error: { Error: 139685643917120:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:
code: 'ESOCKET', command: 'CONN' } }
In that case the stackify-logger will throw an error at error.formatEx() method
TypeError: Cannot read property 'Method' of undefined
at Object.formatEx (/home/cxco/code/projects/kpn/kpn-proxy/node_modules/stackify-logger/lib/error.js:82:44)