server: proxy: print version and buildconfig on startup

This commit is contained in:
Kobi Mizrachi 2020-05-10 08:33:07 +03:00 committed by akallabeth
parent 451060574d
commit 00c25eada0
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#include "pf_log.h"
#include "pf_modules.h"
#include <freerdp/version.h>
#include <freerdp/build-config.h>
#include <winpr/collections.h>
#include <stdlib.h>
@ -85,6 +86,11 @@ int main(int argc, char* argv[])
char* config_path = "config.ini";
int status = -1;
WLog_INFO(TAG, "freerdp-proxy version info:");
WLog_INFO(TAG, "\tFreeRDP version: %s", FREERDP_VERSION_FULL);
WLog_INFO(TAG, "\tGit commit: %s", GIT_REVISION);
WLog_DBG(TAG, "\tBuild config: %s", freerdp_get_build_config());
if (argc >= 2)
config_path = argv[1];