diff options
author | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2012-10-10 00:35:20 -0700 |
---|---|---|
committer | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2012-10-17 02:54:48 -0700 |
commit | b3abf7abf6ef874f128023af848c698788a1faba (patch) | |
tree | 0b67e3752f3dfecc5dca1e5d49fbd49fbb924f01 | |
parent | 0fe25d27b85d0faefde7bd9d402f10a5e8999196 (diff) | |
download | layer_management-b3abf7abf6ef874f128023af848c698788a1faba.tar.gz |
LayerManagerService: added logging of command line arguments
On startup LayerManagerService logs the command line it was started with.
-rw-r--r-- | LayerManagerService/src/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/LayerManagerService/src/main.cpp b/LayerManagerService/src/main.cpp index 911b353..bd8f72f 100644 --- a/LayerManagerService/src/main.cpp +++ b/LayerManagerService/src/main.cpp @@ -440,6 +440,13 @@ int main(int argc, char **argv) char* pluginLookupPath = getenv("LM_PLUGIN_PATH"); LOG_INFO("LayerManagerService", "Starting Layermanager (version: " << ILM_VERSION << ")"); + std::stringstream commandLine; + for (int i = 0; i < argc; ++i) + { + commandLine << argv[i] << " "; + } + LOG_INFO("LayerManagerService", "Command Line: " << commandLine.str()); + buildConfigurationFlag configFlags[] = { buildConfigurationFlags }; int configFlagCount = sizeof(configFlags) / sizeof(configFlags[0]); for (int i = 0; i < configFlagCount; ++i) |