]> git.sesse.net Git - casparcg/commitdiff
Indent stack trace lines so it is easier to read
authorHelge Norberg <helge.norberg@svt.se>
Thu, 3 Dec 2015 10:20:07 +0000 (11:20 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Thu, 3 Dec 2015 10:20:07 +0000 (11:20 +0100)
common/os/windows/stack_trace.cpp

index c01d06acbe87624488ef9ec8ff98fd5734fb768e..ff5dc28bf518c48a6e68debe43d3b45955c9d6aa 100644 (file)
@@ -36,7 +36,7 @@ std::wstring get_call_stack()
 {
        class log_call_stack_walker : public StackWalker
        {
-               std::string str_;
+               std::string str_ = "\n";
        public:
                log_call_stack_walker() : StackWalker() {}
 
@@ -59,7 +59,7 @@ std::wstring get_call_stack()
                        std::string str = szText;
 
                        if(str.find("caspar::get_call_stack") == std::string::npos && str.find("StackWalker::ShowCallstack") == std::string::npos)
-                               str_ += std::move(str);
+                               str_ += "    " + std::move(str);
                }
        };