18 messages in com.googlegroups.google-calendar-help-dataapiRe: GDataLoggingRequest
FromSent OnAttachments
Kulvinder Singh11 Feb 2008 07:14 
Frank Mantek11 Feb 2008 07:51 
Kulvinder Singh12 Feb 2008 00:06 
Frank Mantek12 Feb 2008 02:00 
Kulvinder Singh18 Feb 2008 01:39 
Frank Mantek18 Feb 2008 03:06 
Frank Mantek19 Feb 2008 04:15 
Kulvinder Singh24 Feb 2008 03:41 
Frank Mantek25 Feb 2008 04:10 
Kulvinder Singh25 Feb 2008 21:49 
Frank Mantek26 Feb 2008 01:08 
Kulvinder Singh26 Feb 2008 02:34 
Frank Mantek26 Feb 2008 05:00 
Kulvinder Singh26 Feb 2008 05:26 
Frank Mantek26 Feb 2008 05:49 
Kulvinder Singh26 Feb 2008 08:36 
Kulvinder Singh27 Feb 2008 06:21 
Frank Mantek27 Feb 2008 06:53 
Subject:Re: GDataLoggingRequest
From:Kulvinder Singh (kulv@yahoo.com)
Date:02/12/2008 12:06:31 AM
List:com.googlegroups.google-calendar-help-dataapi

Hi Frank,

Thanks for the reply. Yes, i am also using the LoggingRequestFactory and came up
with the issues i mentioned.

I have filed a bug at http://code.google.com/p/gdata-issues/issues/detail?id=351

Can you please solve this at the earliest ? Since, you yourself has written
everything on Logging, i think you can do it quite quickly (if you get some
bandwidth. Right ?)

I hope we can improve this logging stuff to a much better level.

----- Original Message ---- From: Frank Mantek <fman@gmail.com> To: goog@googlegroups.com Sent: Monday, February 11, 2008 9:21:29 PM Subject: Re: GDataLoggingRequest

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 ?

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.