Conditionaly log stack traces

Hello.
changes:
add simple logging of the stack traces
add config option $LogStackTraces, by default is 0 even in devel mode
WARN handler uses ‘goto &foo’ syntax to hide itself from stack
cleanup InitLogging

Best regards, Ruslan.

stack_traces.patch (5.98 KB)