diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-07-28 20:56:05 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-08-01 14:35:04 -0400 |
| commit | 8df034ed6b3a1a52bd268ed43e783c35b687408f (patch) | |
| tree | caa89977dfffe302514489b96b6cda1765f0af2b /view/pe | |
| parent | 1b2f5c4c8df34d399a8abaff7db5d2338cb90ac1 (diff) | |
Add LogForException APIs to pass stack trace information separate from the message
Diffstat (limited to 'view/pe')
| -rw-r--r-- | view/pe/peview.cpp | 6 | ||||
| -rw-r--r-- | view/pe/teview.cpp | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/view/pe/peview.cpp b/view/pe/peview.cpp index c223d12b..1272c9af 100644 --- a/view/pe/peview.cpp +++ b/view/pe/peview.cpp @@ -3035,7 +3035,8 @@ Ref<BinaryView> PEViewType::Create(BinaryView* data) } catch (std::exception& e) { - m_logger->LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); + m_logger->LogErrorForException( + e, "%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); return nullptr; } } @@ -3049,7 +3050,8 @@ Ref<BinaryView> PEViewType::Parse(BinaryView* data) } catch (std::exception& e) { - m_logger->LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); + m_logger->LogErrorForException( + e, "%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); return nullptr; } } diff --git a/view/pe/teview.cpp b/view/pe/teview.cpp index 4c27c21a..5b0b75b9 100644 --- a/view/pe/teview.cpp +++ b/view/pe/teview.cpp @@ -333,7 +333,8 @@ Ref<BinaryView> TEViewType::Create(BinaryView* bv) } catch (std::exception& e) { - m_logger->LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); + m_logger->LogErrorForException( + e, "%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); return nullptr; } } @@ -346,7 +347,8 @@ Ref<BinaryView> TEViewType::Parse(BinaryView* bv) } catch (std::exception& e) { - m_logger->LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); + m_logger->LogErrorForException( + e, "%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); return nullptr; } } |
