As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
What else are you logging? It doesn't seem like the above would cause it.
D
Davide Neri
said
about 10 years ago
hmm, okay so it's not something that happens by default...
On that file I have no other log with "LOGGER", if not a LOGGER.info("Done.");
I don't know if there's other ways to log and I accidentally wrote that without realizing it...but I don't think so.
In AppConfiguration.java I have the only other log:
...
public class AppConfiguration implements ServletContextListener {
private final static Logger LOGGER = Logger.getLogger(AppConfiguration.class.getName());
...
LOGGER.info("App is being configured.");
...
And then I have something on web.xml about "LoggingFilter" ...but that's just some parameter and it was there by default.
Studying a bit the log I realized it's all part of something that basically logs my request, in a very extended way: there's headers, body, authorization, but also a big part containing all my Kinvey account parameters... and within these, under "arguments"."bl" I have listed all my BL code.
This is how my logs look like on GAE:
(I was wrong saying it doesn't log my logs...cause I realized it actually does, I just had a hard time finding them ;) )
com.sun.jersey.api.container.filter.LoggingFilter filter: 2 * Server in-bound request
2 > POST http://xxxxxxxxxx.appspot.com/resize/customEndpoint
You can see LoggingFilter as value in the first 2 init-params
Should I take one of those 2 init-param off the servlet?
M
Michael
said
about 10 years ago
That info is the data that is passed in the request, which I believe is logged in app engine.
D
Davide Neri
said
about 10 years ago
Yep, it is logged on GAE -- sorry I realize I didn't specify where the data was logged.
But that makes it confusing for me to find any custom log I want to have and quickly fills up my Log storage space.
Is there a way to hinder the app to log the whole request?
I'll try deleting some element from web.xml and see what happens :D
D
Davide Neri
said
about 10 years ago
Okay, cool, found the solution.
It was simple if I only knew more about Java web apps :)
Just need to delete the "com.sun.jersey.api.container.filter.LoggingFilter" reference from "ContainerRequestFilters" param on web.xml, cause I only want to read logs from the response, but I'm not interested in logging the whole request.
Davide Neri
Every time I send a request to this Custom Endpoint (and of course the request goes to the GAE app), the app logs all my BL code.
It's quite a long log each time :D
Is this my fault or is it something that automatically happens?
Can I disable this?
** I created my GAE application starting from the sample "quickstart" that is in Kinvey BL SDK. **
all I do about logging is to import the logger
import java.util.logging.Logger;
initialize it:
public class Resize {
public final static Logger LOGGER = Logger.getLogger(Resize.class.getName());
...
and use it a few times like this:
LOGGER.info("fileUrl: " + fileUrl);