userver: logging::stacktrace_cache Namespace Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
logging::stacktrace_cache Namespace Reference

Detailed Description

Contains functions that cache stacktrace results.

Classes

class  StacktraceGuard
 

Functions

std::string to_string (const boost::stacktrace::stacktrace &st)
 
bool GlobalEnableStacktrace (bool enable)
 

Function Documentation

◆ GlobalEnableStacktrace()

bool logging::stacktrace_cache::GlobalEnableStacktrace ( bool enable)

Enable/disable stacktraces. If disabled, stacktrace_cache::to_string() returns with a const string.

Note
Disabling stacktraces is a hack for the Boost.Stacktrace memory leak

◆ to_string()

std::string logging::stacktrace_cache::to_string ( const boost::stacktrace::stacktrace & st)

Get cached stacktrace

See also
GlobalEnableStacktrace