From f48d67fa6d70e22da1fddadf8af109205ffb7563 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 3 Apr 2016 10:35:50 +0200 Subject: [PATCH] tests: restore option to print to console with deallog The recent change to the default of deallog.depth_console (now 0) broke the bool console parameter to the various init() functions used in tests. Restore this feature. --- tests/tests.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/tests.h b/tests/tests.h index 086ef88cab..7a1dd16a80 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -309,8 +309,7 @@ initlog(bool console=false) deallogname = "output"; deallogfile.open(deallogname.c_str()); deallog.attach(deallogfile); - if (!console) - deallog.depth_console(0); + deallog.depth_console(console?10:0); //TODO: Remove this line and replace by test_mode() deallog.threshold_float(1.e-8); @@ -328,8 +327,7 @@ mpi_initlog(bool console=false) deallogname = "output"; deallogfile.open(deallogname.c_str()); deallog.attach(deallogfile); - if (!console) - deallog.depth_console(0); + deallog.depth_console(console?10:0); //TODO: Remove this line and replace by test_mode() deallog.threshold_float(1.e-8); @@ -355,8 +353,7 @@ struct MPILogInitAll deallogname = deallogname + Utilities::int_to_string(myid); deallogfile.open(deallogname.c_str()); deallog.attach(deallogfile); - if (!console) - deallog.depth_console(0); + deallog.depth_console(console?10:0); //TODO: Remove this line and replace by test_mode() deallog.threshold_float(1.e-8); -- 2.39.5