Remove logging from app engine

78 views
Skip to first unread message

Brian Williams

unread,
Sep 27, 2011, 3:42:39 PM9/27/11
to google-a...@googlegroups.com
Hi. I am currently using app engine to email from app inventor app. Need information securely emailed and not saved in cloud. Am using Shival Wolfs wolf web mail using TWDB.

Works well but i need to know if i can stop the log files being created in app engine. They are storing the data sent and i wish it to not be stored.

Can anyone advise or point me towards building the solution please?

Many thanks.

Brian

Jeff Schnitzer

unread,
Sep 27, 2011, 4:35:07 PM9/27/11
to google-a...@googlegroups.com
Do you mean that the data is being sent to GAE as HTTP GET parameters
and they're showing up in the logs? If so, use HTTP POST instead.

Jeff

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/VgESyj-RLBAJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

Brian Williams

unread,
Sep 27, 2011, 4:55:51 PM9/27/11
to google-a...@googlegroups.com
Thanks for the prompt reply.

Using TWDB it does not give me a choice. Newbie to this and wanted to use app inventors web component using Shival's wolf web mail2 but cant get it to work.

Are you familiar with AI?

Brian

Jeff Schnitzer

unread,
Sep 27, 2011, 5:27:44 PM9/27/11
to google-a...@googlegroups.com
I'm afraid those acronyms are not part of my repertoire. But there
are two kinds of logging GAE does:

1) HTTP request logging that you cannot turn off
2) Standard logging that you can tune as you like

If your app is issuing requests with GET parameters, you need to
figure out how to make it use POST instead. If the "bad" log messages
are normal DEBUG/INFO/WARN/ERROR/etc logs, you can turn these on or
off. Look up the GAE documentation for logging. In java you
configure this with logging.properties. In python, I don't know.

Jeff

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-appengine/-/btg6SKX7YDUJ.

Brian Personal

unread,
Sep 27, 2011, 5:35:49 PM9/27/11
to google-a...@googlegroups.com

Thank you jeff. I think I can play with the python code. And as I know nothing about python what better way to learn! Lol.

bbaychev

unread,
Sep 27, 2011, 5:59:13 PM9/27/11
to Google App Engine
The log would save only parameters values if you are sending GET
requests over HTTP. Consider using HTTPS along with POST requests,
search for security constraints + GAE and how to force all trafic over
HTTPS with the CONFIDENTIAL key.
If you want the logger to show no trace of your requests, you will
have to disable it.

On Sep 27, 10:42 pm, Brian Williams <tribblehunter2...@gmail.com>
wrote:

Brian Personal

unread,
Sep 28, 2011, 2:26:53 PM9/28/11
to google-a...@googlegroups.com

Thank you baychev. Due to using app inventor and being a newbie at this certain things are beyond my control or knowledge. But I am learning fast and AI is growing with MIT's help in new year (I hope). I will take your advice and be reading the documentation over the next few weeks.

Brian Williams

unread,
Oct 26, 2011, 12:27:38 PM10/26/11
to google-a...@googlegroups.com
Thank you for all your advice.

Now using Shivalwolfs webemail2 using post. Had made mistake in original codeblock in AI which ommitted the 's' on the http//myapp.appspot.com url. This was causing bounce code 302. Now it works very well. Thank you Shival!

What worked for the logging was simply removing the logging reference to the data in the .py file. I made a number of errors in my first attempt which corrupted the code but after a long walk I started from scratch and it worked. Can now see requests and confirmations but no actual data.

This noob now feels like he is getting somewhere.

Thank you all.
Reply all
Reply to author
Forward
0 new messages