Log details of the arguments to each updater process invocation in main()

This commit is contained in:
Robert Knight 2011-08-21 21:54:35 +01:00
parent 5f3745351f
commit 1fdec35cdd
1 changed files with 9 additions and 7 deletions

View File

@ -1,6 +1,8 @@
#include "UpdaterOptions.h"
#include "UpdateScript.h"
#include "Log.h"
#include "Platform.h"
#include "StringUtils.h"
#include "UpdateScript.h"
#include "UpdaterOptions.h"
#if defined(PLATFORM_WINDOWS)
#include "UpdateDialogWin32.h"
@ -35,11 +37,11 @@ int main(int argc, char** argv)
setupUi(&installer);
}
std::cout << "install dir " << options.installDir << std::endl;
std::cout << "package dir " << options.packageDir << std::endl;
std::cout << "wait pid " << options.waitPid << std::endl;
std::cout << "script " << options.script << std::endl;
std::cout << "mode " << options.mode << std::endl;
LOG(Info,"started updater. install-dir: " + options.installDir
+ ", package-dir: " + options.packageDir
+ ", wait-pid: " + intToStr(options.waitPid)
+ ", script-path: " + options.script
+ ", mode: " + intToStr(options.mode));
installer.setMode(options.mode);
installer.setInstallDir(options.installDir);