Actually, that is more a matter of feature discussion. I wrote the  
logging code primarily to help me debug issues on systems that do not  
have sophisticated tools like Fiddler readily available.

So, yes it is not perfect. I have no idea why the request file is  
never created for you (this works fine for me), and that it does not  
log headers is a known limitation.

So please file bugs/issue reports against that. I am more than happy  
to look into enhancing it - i assumed so far i am the only one using  
it :)

Regards

Frank Mantek
Google
On Feb 11, 2008, at 4:14 PM, Kulvinder Singh wrote:

> Hi,
>
> Following is the code for Execute() in GDataLoggingRequest :
>
>         public override void Execute()
>         {
>             if (this.RequestCopy != null)
>             {
>                 this.RequestCopy.Seek(0, SeekOrigin.Begin);
>                 SaveStream(this.RequestCopy, this.strInput);
>                 this.RequestCopy.Seek(0, SeekOrigin.Begin);
>
>             }
>             try
>             {
>                 base.Execute();
>
>             }
>             catch (GDataRequestException re)
>             {
>                 Tracing.TraceMsg("Got into exception handling for  
> base.execute");
>                 HttpWebResponse response = re.Response as  
> HttpWebResponse;
>
>                 if (response != null)
>                 {
>                     Stream req = response.GetResponseStream();
>                     SaveStream(req, this.strOutput);
>                 }
>                 throw;
>             }
>         }
>
>
> The catch block catches only the GDataRequestException and when i  
> fetched the list of calendars using a wrong password, it doesnt  
> write the response stream.
>
> Is this correct ?
>
> Also, GDataRequest.xml is never created (See  
> GDataLoggingRequestFactory) but the GDataResponse.xml and  
> GDataTraffic.log is created.
>
> GDataTraffic.log just writes the XML Request and Response with no  
> carriage returns between them for differentiation.
>
> Also, The factory doesnt write the headers which were sent to google  
> but the same thing is available with Phython Google Calendar API.
>
> Any thoughts ?
>
> Thanks
> Kulvinder Singh
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
> Try it now.
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to