Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: actor-framework/actor-framework
...
head fork: actor-framework/actor-framework
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 9 additions and 5 deletions.
  1. +7 −2 cppa/logging.hpp
  2. +2 −3 cppa/to_string.hpp
View
9 cppa/logging.hpp
@@ -33,6 +33,7 @@
#include <sstream>
#include <iostream>
+#include <execinfo.h>
#include "cppa/singletons.hpp"
#include "cppa/detail/demangle.hpp"
@@ -109,9 +110,13 @@ class logging {
#define CPPA_LIF(stmt, logstmt) if (stmt) { logstmt ; } CPPA_VOID_STMT
#ifndef CPPA_LOG_LEVEL
-# define CPPA_LOG(classname, funname, level, message) \
+# define CPPA_LOG(classname, funname, level, message) { \
std::cerr << level << " [" << classname << "::" << funname << "]: " \
- << message << std::endl;
+ << message << "\nStack trace:\n"; \
+ void *array[10]; \
+ size_t size = backtrace(array, 10); \
+ backtrace_symbols_fd(array, size, 2); \
+ } CPPA_VOID_STMT
#else
# define CPPA_LOG(classname, funname, level, message) { \
std::ostringstream scoped_oss; scoped_oss << message; \
View
5 cppa/to_string.hpp
@@ -76,9 +76,8 @@ inline std::string to_string(const group_ptr& what) {
return detail::to_string_impl(what);
}
-inline std::string to_string(const process_information& what) {
- return detail::to_string_impl(what);
-}
+// implemented in process_information.cpp
+std::string to_string(const process_information& what);
inline std::string to_string(const object& what) {
return detail::to_string_impl(what.value(), what.type());

No commit comments for this range

Something went wrong with that request. Please try again.