This project is read-only.

DO NOT use system.stdout!!!!

Jun 20, 2011 at 10:32 AM

I've noticed that system.stdout(text) call creates a huge problem.

In fact, writing that is the same than writing response.write. And this creates problems when there is a call to the server returning some data, e.g. the call for reading the session and writing news on the homepage in our test1_client.html test: it cannot parse the json object returned because there is other stuff.

Jun 20, 2011 at 10:47 AM

Sure, we are using system.stdout to print debug outputs temporary. They must be removed during client-server interaction tests.

Jun 20, 2011 at 11:41 AM
Edited Jun 20, 2011 at 11:41 AM

it's better to use system.stderr (writes in error.log) as Cristian said, or develop a simple lib to log on files. I'm writing the library, it should be ready this afternoon

it will be complicated!

var logger = getLogger();
logger.log("This is a log!");

but it should work :)