diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp
index 52e6cd1a945e435d822b8497052556f4a0ff0f41..b4c2fc3bad2ff3ea4d6db0e255b9e142fcabd61c 100644
--- a/src/debug/logger.cpp
+++ b/src/debug/logger.cpp
@@ -64,9 +64,8 @@ namespace dynamicgraph
     // if print is allowed by current verbosity level
     if( isStreamMsg(type))
       {
-        int l = line;
         // check whether counter already exists
-        string id = file+/*toString(line)*/+ l;
+        string id = file+toString(line);
         map<string,double>::iterator it = m_stream_msg_counters.find(id);
         if(it == m_stream_msg_counters.end())
 	  {