From 2b02fac2d5f677dc6d099f550fd94fe8dac18bb2 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Thu, 29 May 2014 23:51:48 +0200 Subject: Improve compiler/platform/libs information in logs Add and use usedCompilerAndPlatform(). This adds compiler information to INFO logs and the --version output, and may be helpful when trying to diagnose/reproduce user-reported problems. Also make INFO logs include usedLibs() output. Closes #235 --- src/Context.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Context.cc') diff --git a/src/Context.cc b/src/Context.cc index 25182c47..8de8b577 100644 --- a/src/Context.cc +++ b/src/Context.cc @@ -174,7 +174,10 @@ Context::Context(bool standalone, A2_LOG_INFO("<<--- --- --- ---"); A2_LOG_INFO(" --- --- --- ---"); A2_LOG_INFO(" --- --- --- --->>"); - A2_LOG_INFO(fmt("%s %s %s", PACKAGE, PACKAGE_VERSION, TARGET)); + A2_LOG_INFO(fmt("%s %s", PACKAGE, PACKAGE_VERSION)); + A2_LOG_INFO(usedCompilerAndPlatform()); + A2_LOG_INFO(getOperatingSystemInfo()); + A2_LOG_INFO(usedLibs()); A2_LOG_INFO(MSG_LOGGING_STARTED); if(op->getAsBool(PREF_DISABLE_IPV6)) { -- cgit