Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#21090] Added the improved code for loggingResponsetime and added the link in the docs #21118

Merged
merged 8 commits into from Aug 5, 2016

Conversation

shiv4nsh
Copy link
Contributor

@shiv4nsh shiv4nsh commented Aug 3, 2016

Added the improved code as per the comments on #21110 .

@akka-ci
Copy link

akka-ci commented Aug 3, 2016

Can one of the repo owners verify this patch?

@shiv4nsh
Copy link
Contributor Author

shiv4nsh commented Aug 4, 2016

@ktoso @johanandren : Can we merge this ? Please assign it in testing !

@Hawstein
Copy link
Contributor

Hawstein commented Aug 4, 2016

I think the counterpart of Java DSL needs this example too. You can look into the DebuggingDirectivesExamplesTest file.

@shiv4nsh
Copy link
Contributor Author

shiv4nsh commented Aug 4, 2016

@Hawstein : I have added the javadocs and code too . Please take a look

if(response.status().isSuccess())
{
Long elapsedTime=(requestTime - System.nanoTime()) / 1000;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wanted it in microseconds, one microsecond is 1 000 000 nanoseconds

@johanandren
Copy link
Member

OK TO TEST

@akka-ci akka-ci added validating PR is currently being validated by Jenkins needs-attention Indicates a PR validation failure (set by CI infrastructure) labels Aug 4, 2016
@akka-ci
Copy link

akka-ci commented Aug 4, 2016

Test FAILed.

@akka-ci akka-ci removed the validating PR is currently being validated by Jenkins label Aug 4, 2016
@akka-ci akka-ci added validating PR is currently being validated by Jenkins needs-attention Indicates a PR validation failure (set by CI infrastructure) and removed needs-attention Indicates a PR validation failure (set by CI infrastructure) labels Aug 4, 2016
@akka-ci
Copy link

akka-ci commented Aug 4, 2016

Test FAILed.

@akka-ci akka-ci removed the validating PR is currently being validated by Jenkins label Aug 4, 2016
@akka-ci akka-ci added validating PR is currently being validated by Jenkins and removed needs-attention Indicates a PR validation failure (set by CI infrastructure) labels Aug 4, 2016
@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed validating PR is currently being validated by Jenkins labels Aug 4, 2016
@johanandren
Copy link
Member

LGTM!

@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed tested PR that was successfully built and tested by Jenkins validating PR is currently being validated by Jenkins labels Aug 4, 2016
@akka-ci
Copy link

akka-ci commented Aug 4, 2016

Test PASSed.

@shiv4nsh
Copy link
Contributor Author

shiv4nsh commented Aug 5, 2016

@Hawstein @ktoso : Can you please review it !


// handle request to optionally generate a log entry

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line?

@ktoso
Copy link
Member

ktoso commented Aug 5, 2016

LGTM after last round of comments addressed, thanks

@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed tested PR that was successfully built and tested by Jenkins labels Aug 5, 2016
@akka-ci
Copy link

akka-ci commented Aug 5, 2016

Test PASSed.

@akka-ci akka-ci removed the validating PR is currently being validated by Jenkins label Aug 5, 2016
@akka-ci akka-ci added validating PR is currently being validated by Jenkins and removed tested PR that was successfully built and tested by Jenkins labels Aug 5, 2016
@@ -30,3 +30,13 @@ Example

.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/DebuggingDirectivesExamplesSpec.scala
:snippet: logRequestResult


Building Advanced Directives
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@ktoso
Copy link
Member

ktoso commented Aug 5, 2016

LGTM, thanks for your work on this.
We'll merge after validation

@ktoso ktoso added the reviewed Ready to merge from review perspetive, but awaiting some additional action (e.g. order of merges) label Aug 5, 2016
@akka-ci akka-ci added the tested PR that was successfully built and tested by Jenkins label Aug 5, 2016
@akka-ci
Copy link

akka-ci commented Aug 5, 2016

Test PASSed.

@akka-ci akka-ci removed the validating PR is currently being validated by Jenkins label Aug 5, 2016
@ktoso
Copy link
Member

ktoso commented Aug 5, 2016

Resolves #21090

@ktoso ktoso merged commit 25e4586 into akka:master Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewed Ready to merge from review perspetive, but awaiting some additional action (e.g. order of merges) tested PR that was successfully built and tested by Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants