summaryrefslogtreecommitdiff
path: root/src/Context.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2014-05-29 23:51:48 +0200
committerNils Maier <maierman@web.de>2014-06-10 11:28:34 +0200
commit2b02fac2d5f677dc6d099f550fd94fe8dac18bb2 (patch)
tree5fc136be71f945d3ee2943a1aa2f28bf0bdaaae1 /src/Context.cc
parent570bc24fb98d72d1bce9261fdc29139224ec86ec (diff)
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
Diffstat (limited to 'src/Context.cc')
-rw-r--r--src/Context.cc5
1 files changed, 4 insertions, 1 deletions
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)) {