- add log before

This commit is contained in:
dmit.b
2026-06-22 22:03:44 +03:00
parent 2a3a6edc33
commit 417bb7834e
+1 -1
View File
@@ -60,7 +60,7 @@ class AuthRoutes {
Future<Response> _register(Request request) async { Future<Response> _register(Request request) async {
final stopwatch = Stopwatch()..start(); final stopwatch = Stopwatch()..start();
final body = await request.readAsString(); 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 data = jsonDecode(body);
final login = data['login']; final login = data['login'];