Author: jstrachan
Date: Fri Mar  2 07:53:15 2007
New Revision: 513819

URL: http://svn.apache.org/viewvc?view=rev&rev=513819
Log:
tidied up the debug logging a tad

Modified:
    
activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs

Modified: 
activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs
URL: 
http://svn.apache.org/viewvc/activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs?view=diff&rev=513819&r1=513818&r2=513819
==============================================================================
--- 
activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs
 (original)
+++ 
activemq/activemq-dotnet/trunk/src/main/csharp/ActiveMQ/Transport/Stomp/StompWireFormat.cs
 Fri Mar  2 07:53:15 2007
@@ -49,7 +49,7 @@
 
         public void Marshal(Object o, BinaryWriter binaryWriter)
         {
-                       Console.WriteLine("About to marshall command: " + o);
+                       Console.WriteLine(">>>> " + o);
                        //Console.Out.Flush();
                        StompFrameStream ds = new 
StompFrameStream(binaryWriter, encoding);
                        
@@ -90,11 +90,11 @@
                                        response.CorrelationId = 
command.CommandId;
                                        SendCommand(response);
                                }
-                               Console.WriteLine("#### Ignored command: " + o);
+                               Console.WriteLine("#### Ignored command: " + 
o.GetType());
                        }
                        else
                        {
-                               Console.WriteLine("#### Ignored command: " + o);
+                               Console.WriteLine("#### Ignored command: " + 
o.GetType());
                        }
         }
 
@@ -108,7 +108,7 @@
                        }
                        while (command == "");
                        
-                       Console.WriteLine(">> command: " + command);
+                       Console.WriteLine("<<<< command: " + command);
                        
                        IDictionary headers = new Hashtable();
                        string line;
@@ -121,7 +121,7 @@
                                        string value = line.Substring(idx + 1);
                                        headers[key] = value;
                                        
-                                       Console.WriteLine(">> header: " + key + 
" = " + value);
+                                       Console.WriteLine("<<<< header: " + key 
+ " = " + value);
                                }
                                else
                                {
@@ -147,7 +147,7 @@
                                content = encoding.GetBytes(text);
                        }
                        Object answer = CreateCommand(command, headers, 
content);
-                       Console.WriteLine(">>>>> received: " + answer);
+                       Console.WriteLine("<<<< received: " + answer);
                        Console.Out.Flush();
                        return answer;
         }


Reply via email to