Revision 739664d2

b/trunk/Pithos.Network/CloudFilesClient.cs
1069 1069
                            //line by line
1070 1070
                            
1071 1071
                            var serializer = new JsonSerializer();                            
1072
                            var hashes=(List<string>)serializer.Deserialize(reader, typeof (List<string>));
1073

  
1074
                            return hashes;
1072
                            serializer.Error += (sender, args) => Log.ErrorFormat("Deserialization error at [{0}] [{1}]", args.ErrorContext.Error, args.ErrorContext.Member);
1073
                            if (Log.IsDebugEnabled)
1074
                            {
1075
                                var body=reader.ReadToEnd();
1076
                                Log.DebugFormat("JSON response: {0}",body);
1077
                                using (var strReader = new StringReader(body))
1078
                                {
1079
                                    var hashes = (List<string>)serializer.Deserialize(strReader, typeof(List<string>));
1080
                                    return hashes;
1081
                                }
1082
                            }
1083
                            else
1084
                            {
1085
                                var hashes = (List<string>)serializer.Deserialize(reader, typeof(List<string>));
1086
                                return hashes;
1087
                            }
1075 1088
                        }                        
1076 1089
                    }                    
1077 1090
                    //Any other status code is unexpected and the exception should be rethrown

Also available in: Unified diff