Loging request information for faild response

Hi,

For the debuging purpose I am loging failed request with:
"GatlingAsyncHandlerActor", but I need information about request for
failed response.

What is the best way to get this information?

1) I was trying to give unique scenario name for every request:

                scenario("${id}") // wrong solution, because it is
scenario - not request - name

2) I was trying to do something similar to:

                (session: Session) => {

                        println(session)

                       session

                }

    ,but I don't know how to call this method when request failed.

Thanks in advance,

Paweł

I can find input data base on userId (which is saved in simulation.log for all requests)

Hi Pawel,

You can either lower the root level to DEBUG in logback.conf (this will print all the requests and responses), or build custom extractors:
https://github.com/excilys/gatling/wiki/HTTP#wiki-custom-dump

I’ll open an issue so that we not only log the response, but the request too, when a check fails.

Hope that helps,
Cheers,

Steph

2012/8/15 slowikps <slowikps@gmail.com>

For the record, I opened this issue:
https://github.com/excilys/gatling/issues/641

The fix is already in master, so you can use it if you’re willing to build from sources.

Cheers,

Steph

2012/8/15 Stéphane Landelle <slandelle@excilys.com>

thank you very much,
Paweł

2012/8/15 Stéphane Landelle <slandelle@excilys.com>