aboutsummaryrefslogtreecommitdiff
path: root/paludis/output_manager_from_environment.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 16:47:17 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-12 16:47:17 +0000
commit23c22d5df8d5d47111d9c8e1e43e787f6a534b65 (patch)
tree004ed29559fe1a09c528f9050f48262bf9ad4887 /paludis/output_manager_from_environment.cc
parent234d67465e0aae7b1e2e34c8c520609c6bd80789 (diff)
downloadpaludis-23c22d5df8d5d47111d9c8e1e43e787f6a534b65.tar.gz
paludis-23c22d5df8d5d47111d9c8e1e43e787f6a534b65.tar.xz
Send phase messages to the output manager
Diffstat (limited to 'paludis/output_manager_from_environment.cc')
-rw-r--r--paludis/output_manager_from_environment.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/paludis/output_manager_from_environment.cc b/paludis/output_manager_from_environment.cc
index 3c75433e7..0768f3057 100644
--- a/paludis/output_manager_from_environment.cc
+++ b/paludis/output_manager_from_environment.cc
@@ -19,8 +19,10 @@
#include <paludis/output_manager_from_environment.hh>
#include <paludis/util/private_implementation_pattern-impl.hh>
+#include <paludis/util/log.hh>
#include <paludis/environment.hh>
#include <paludis/create_output_manager_info.hh>
+#include <paludis/standard_output_manager.hh>
using namespace paludis;
@@ -71,5 +73,16 @@ OutputManagerFromEnvironment::output_manager_if_constructed()
return _imp->result;
}
+void
+OutputManagerFromEnvironment::construct_standard_if_unconstructed()
+{
+ if (! _imp->result)
+ {
+ Log::get_instance()->message("output_manager_from_environment.constructed_standard", ll_warning, lc_context)
+ << "No output manager available, creating a standard output manager. This is probably a bug.";
+ _imp->result.reset(new StandardOutputManager);
+ }
+}
+
template class PrivateImplementationPattern<OutputManagerFromEnvironment>;