Skip to content

Commit

Permalink
Fix logging on destructor. (#112)
Browse files Browse the repository at this point in the history
* Fix logging on destructor.

* Fix stdio desctructor logging
hariharan-devarajan authored Jun 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fc6bdf1 commit 761e88d
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dftracer/brahma/posix.h
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ class POSIXDFTracer : public POSIX {
DFTRACER_LOGDEBUG("Finalizing POSIXDFTracer", "");
stop_trace = true;
}
~POSIXDFTracer() { DFTRACER_LOGDEBUG("Destructing POSIXDFTracer", ""); }
~POSIXDFTracer() {}
static std::shared_ptr<POSIXDFTracer> get_instance(bool trace_all = false) {
DFTRACER_LOGDEBUG("POSIX class get_instance", "");
if (!stop_trace && instance == nullptr) {
2 changes: 1 addition & 1 deletion src/dftracer/brahma/stdio.h
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ class STDIODFTracer : public STDIO {
DFTRACER_LOGDEBUG("Finalizing STDIODFTracer", "");
stop_trace = true;
}
~STDIODFTracer() { DFTRACER_LOGDEBUG("Destructing STDIODFTracer", ""); };
~STDIODFTracer() {};

static std::shared_ptr<STDIODFTracer> get_instance(bool trace_all = false) {
DFTRACER_LOGDEBUG("STDIO class get_instance", "");

0 comments on commit 761e88d

Please sign in to comment.