From 035995a8c16e8867f209100330653b33de06f458 Mon Sep 17 00:00:00 2001
From: Nito Martinez <Nito@Qindel.ES>
Date: Tue, 31 May 2016 11:23:40 +0200
Subject: display version number in nxcomp log, fixes #127

---
 nxcomp/Control.cpp | 3 ++-
 nxcomp/Loop.cpp    | 2 --
 2 files changed, 2 insertions(+), 3 deletions(-)

(limited to 'nxcomp')

diff --git a/nxcomp/Control.cpp b/nxcomp/Control.cpp
index 1bf2dbdd2..93b3ff277 100644
--- a/nxcomp/Control.cpp
+++ b/nxcomp/Control.cpp
@@ -618,7 +618,8 @@ Control::Control()
   #ifdef TEST
   *logofs << "Control: Major version is " << LocalVersionMajor
           << " minor is " << LocalVersionMinor << " patch is "
-          << LocalVersionPatch << ".\n" << logofs_flush;
+          << LocalVersionPatch << " Maintenance version is "
+	  << LocalVersionMaintenancePatch << ".\n" << logofs_flush;
   #endif
 
   //
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index 97020d162..436713761 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -7508,7 +7508,6 @@ int ReadProxyVersion(int fd)
                        &(control -> RemoteVersionPatch));
   }
 
-  #ifdef TEST
   *logofs << "Loop: Identified remote version '" << control -> RemoteVersionMajor
           << "." << control -> RemoteVersionMinor << "." << control -> RemoteVersionPatch
           << "'.\n" << logofs_flush;
@@ -7520,7 +7519,6 @@ int ReadProxyVersion(int fd)
   *logofs << "Loop: Local version '" << control -> LocalVersionMajor
           << "." << control -> LocalVersionMinor << "." << control -> LocalVersionPatch
           << "'.\n" << logofs_flush;
-  #endif
 
   if (SetVersion() < 0)
   {
-- 
cgit v1.2.3