From 8b1364473de219ad16cedc502a1c01e5ef7a5502 Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Sat, 25 Apr 2020 12:43:14 +0200 Subject: [PATCH] Remove print statement --- api/src/routing/NotesController.kt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/api/src/routing/NotesController.kt b/api/src/routing/NotesController.kt index 4015312..80ab994 100644 --- a/api/src/routing/NotesController.kt +++ b/api/src/routing/NotesController.kt @@ -8,19 +8,16 @@ import io.ktor.response.* import io.ktor.routing.* import org.kodein.di.Kodein import org.kodein.di.generic.instance -import kotlin.system.measureTimeMillis fun Routing.notes(kodein: Kodein) { val notesService by kodein.instance() authenticate { get("/notes") { - val time = measureTimeMillis { - val userId = call.userId() - val notes = notesService.getNotes(userId) - call.respond(notes) - } - application.log.info("Time taken: $time ms") + val userId = call.userId() + val notes = notesService.getNotes(userId) + call.respond(notes) } } } +}