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

Adds a module for logging requests #1869

Merged
merged 1 commit into from
Dec 2, 2015
Merged

Conversation

BlackMinou
Copy link
Contributor

Title pretty much says it all

Signed-off-by: BlackMinou <romain.chanoir@viacesi.fr>
print "{class_name} return: uri={truncated_uri}"
else
super
end
Copy link
Member

Choose a reason for hiding this comment

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

cf @R4PaSs

if not debug then
   super
   return
end

# rest of the code

# limitations under the License.

# logs requests
module logging
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer log as in import nitcorn::log, it's shorter and cleaner.

Suggestion to improve the doc: Services inserting a timestamp in all prints and to log each requests

@xymus
Copy link
Contributor

xymus commented Nov 30, 2015

+1 Closes #1802.

privat added a commit that referenced this pull request Dec 1, 2015
Title pretty much says it all

Pull-Request: #1869
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
@privat privat merged commit 21d2358 into nitlang:master Dec 2, 2015
@privat privat mentioned this pull request Dec 14, 2015
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants