Revision 6bcdd8e2 trunk/Pithos.Network/RestClient.cs

b/trunk/Pithos.Network/RestClient.cs
147 147

  
148 148
        //Asynchronous version
149 149
        protected override WebResponse GetWebResponse(WebRequest request, IAsyncResult result)
150
        {
151
            Log.InfoFormat("ASYNC [{0}] {1}",request.Method, request.RequestUri);
150
        {            
151
            Log.InfoFormat("[{0}] {1}", request.Method, request.RequestUri); 
152 152
            HttpWebResponse response = null;
153 153

  
154 154
            try
......
157 157
            }
158 158
            catch (WebException exc)
159 159
            {
160
                Log.WarnFormat("[{0}] {1} {2}", request.Method, exc.Status, request.RequestUri);      
160 161
                if (!TryGetResponse(exc, out response))
161 162
                    throw;
162 163
            }
......
174 175
        {
175 176
            HttpWebResponse response = null;
176 177
            try
177
            {                                
178
            {           
179
                Log.InfoFormat("[{0}] {1}",request.Method,request.RequestUri);     
178 180
                response = (HttpWebResponse)base.GetWebResponse(request);
179 181
            }
180 182
            catch (WebException exc)
181 183
            {
184
                Log.WarnFormat("[{0}] {1} {2}", request.Method, exc.Status,  request.RequestUri);     
182 185
                if (!TryGetResponse(exc, out response))
183 186
                    throw;
184 187
            }

Also available in: Unified diff