- add log before
This commit is contained in:
@@ -60,7 +60,7 @@ class AuthRoutes {
|
||||
Future<Response> _register(Request request) async {
|
||||
final stopwatch = Stopwatch()..start();
|
||||
final body = await request.readAsString();
|
||||
logRequest(method: 'POST', url: '/reg', status: 400, duration: stopwatch.elapsed, body: body);
|
||||
logRequest(method: 'POST', url: '/reg', status: 444, duration: stopwatch.elapsed, body: body);
|
||||
final data = jsonDecode(body);
|
||||
|
||||
final login = data['login'];
|
||||
|
||||
Reference in New Issue
Block a user