diff --git a/backend/routes/user/info.coffee b/backend/routes/user/info.coffee index ba5abdf..a648538 100644 --- a/backend/routes/user/info.coffee +++ b/backend/routes/user/info.coffee @@ -1,4 +1,4 @@ -logger = (require 'logging').default 'info' +logger = (require 'logging').default '/user/info' # session storage (volatile data) session = (require '../../session') diff --git a/backend/routes/user/login.coffee b/backend/routes/user/login.coffee index c152fe1..ce040d3 100644 --- a/backend/routes/user/login.coffee +++ b/backend/routes/user/login.coffee @@ -1,4 +1,4 @@ -logger = (require 'logging').default 'login' +logger = (require 'logging').default '/user/login' # session storage (volatile data) session = (require '../../session') diff --git a/backend/routes/user/logout.coffee b/backend/routes/user/logout.coffee index 6fcc51c..65d9adf 100644 --- a/backend/routes/user/logout.coffee +++ b/backend/routes/user/logout.coffee @@ -1,4 +1,4 @@ -logger = (require 'logging').default 'logout' +logger = (require 'logging').default '/user/logout' # session storage (volatile data) session = (require '../../session') diff --git a/backend/routes/user/register.coffee b/backend/routes/user/register.coffee index d06ac5d..2e1f17e 100644 --- a/backend/routes/user/register.coffee +++ b/backend/routes/user/register.coffee @@ -1,4 +1,4 @@ -logger = (require 'logging').default 'register' +logger = (require 'logging').default '/user/register' # fftcg.db (persistent data) fftcgdb = (require '../../db') @@ -10,7 +10,7 @@ module.exports = handler: (request, reply) -> fftcgdb.register(request.body.login, request.body.password) - .then (user) -> + .then -> logger.info "OK '#{request.body.login}'" reply.send success: true