From d8f39b7260df3db377424ad1806fde62c841a39d Mon Sep 17 00:00:00 2001
From: Mohcine Chraibi <m.chraibi@fz-juelich.de>
Date: Fri, 9 Feb 2018 14:36:10 +0100
Subject: [PATCH] Change level of debug messages

---
 src/Debug.cpp | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/Debug.cpp b/src/Debug.cpp
index a1da19b..9cd6e83 100644
--- a/src/Debug.cpp
+++ b/src/Debug.cpp
@@ -35,14 +35,14 @@
 
 #include <fstream>
 #include <iostream>
-
+#include <iomanip>
 #include <stdio.h>
 #include <stdarg.h>
 
 using namespace std;
 
 std::ostream& Debug::os=std::cerr;
-Debug::LEVEL Debug::debugLevel=Debug::ERROR;
+Debug::LEVEL Debug::debugLevel=Debug::ALL;
 int Debug::MSG_Count=0;
 int Debug::ERR_Count=0;
 int Debug::WAR_Count=0;
@@ -69,8 +69,7 @@ void Debug::setDebugLevel(Debug::LEVEL level)
 }
 
 void Debug::Messages(const char *format, ...)
-{
-
+{    
     switch (debugLevel) {
 
     case ALL:
@@ -82,7 +81,7 @@ void Debug::Messages(const char *format, ...)
         vsprintf (msg,format ,ap);
         va_end (ap);
 
-        os<<"Info["<<MSG_Count<<"]"<<msg<<endl;
+        os<<"Info ["<< std::setw(2) <<MSG_Count<<"]: "<<msg<<endl;
     }
     break;
 
-- 
GitLab