route logging scheme

This commit is contained in:
Jörn-Michael Miehe 2019-05-09 14:32:28 +02:00
parent e64f5dbabf
commit 0d604ef320
4 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
logger = (require 'logging').default 'info'
logger = (require 'logging').default '/user/info'
# session storage (volatile data)
session = (require '../../session')

View file

@ -1,4 +1,4 @@
logger = (require 'logging').default 'login'
logger = (require 'logging').default '/user/login'
# session storage (volatile data)
session = (require '../../session')

View file

@ -1,4 +1,4 @@
logger = (require 'logging').default 'logout'
logger = (require 'logging').default '/user/logout'
# session storage (volatile data)
session = (require '../../session')

View file

@ -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