Log actual application path when testing

This commit is contained in:
Martchus 2018-10-25 18:20:14 +02:00
parent ca6663a6d5
commit 34eac527ee
1 changed files with 6 additions and 3 deletions

View File

@ -370,9 +370,12 @@ int execAppInternal(const char *appPath, const char *const *args, std::string &o
{ {
// print log message // print log message
if (!suppressLogging) { if (!suppressLogging) {
cout << '-'; // print actual appPath and skip first argument instead
for (const char *const *i = args; *i; ++i) { cout << '-' << ' ' << appPath;
cout << ' ' << *i; if (*args) {
for (const char *const *i = args + 1; *i; ++i) {
cout << ' ' << *i;
}
} }
cout << endl; cout << endl;
} }