summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaute Hope <eg@gaute.vetsj.com>2019-05-05 08:25:37 +0200
committerGaute Hope <eg@gaute.vetsj.com>2019-05-05 08:25:37 +0200
commite3150ec402f8b161d2001c4214ec88a28f465b20 (patch)
tree89f6f98f81477297194233b2ed9f165f6b70324b
parenta5ccb71d9f37742b6ed28b6eb82670b3c6dfc3b4 (diff)
astroid: remove log sinks to prevent multiple log outputs when creating many instances in tests
-rw-r--r--src/astroid.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/astroid.cc b/src/astroid.cc
index dc52973..43861b2 100644
--- a/src/astroid.cc
+++ b/src/astroid.cc
@@ -418,6 +418,8 @@ namespace Astroid {
actions->close ();
delete actions;
}
+
+ logging::core::get()->remove_all_sinks ();
}
int Astroid::on_command_line (const refptr<Gio::ApplicationCommandLine> & cmd) {