#include "err.h"
#include "logToHost.h"
#include "vthreadBase.h"
+#include "hostinfo.h"
+#include "vm_tools_version.h"
+#include "buildNumber.h"
+#include "vm_product.h"
#define LOGGING_GROUP "logging"
GPtrArray *oldDomains = NULL;
LogHandler *oldDefault = NULL;
GError *err = NULL;
+ char *gosDetails;
g_return_if_fail(defaultDomain != NULL);
gLogEnabled |= force;
MarkLogInitialized();
+ /*
+ * Log Tools version, build information and guest OS details.
+ */
+ g_message("%s Version: %s (%s)", VMWARE_TOOLS_SHORT_NAME,
+ TOOLS_VERSION_EXT_CURRENT_STR, BUILD_NUMBER);
+ gosDetails = Hostinfo_GetOSDetailedData();
+ if (gosDetails != NULL) {
+ g_message("Guest OS details: %s", gosDetails);
+ free(gosDetails);
+ }
+
gMaxCacheEntries = g_key_file_get_integer(cfg, LOGGING_GROUP,
"maxCacheEntries", &err);
if (err != NULL || gMaxCacheEntries < 0) {
GMainContext *gctx;
ToolsServiceProperty ctxProp = { TOOLS_CORE_PROP_CTX };
- /*
- * Useful for debugging purposes. Log the vesion and build information.
- */
- g_message("Tools Version: %s (%s)\n", TOOLS_VERSION_EXT_CURRENT_STR, BUILD_NUMBER);
-
/* Initializes the app context. */
gctx = g_main_context_default();
state->ctx.version = TOOLS_CORE_API_V1;