From 1f31b8e2ae19d4e339992bf059b92bd0294ad7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Thu, 14 Jun 2018 10:45:23 +0200 Subject: [PATCH] removing old copy logs --- app/controllers/copy_controller.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/app/controllers/copy_controller.js b/app/controllers/copy_controller.js index 1bbc8bd9..cea5abbd 100644 --- a/app/controllers/copy_controller.js +++ b/app/controllers/copy_controller.js @@ -93,24 +93,16 @@ function handleCopyFrom (logger) { res.locals.user, req.get('content-encoding') === 'gzip', logger, - function(err, metrics) { // TODO: remove when data-ingestion log works: {time, rows} + function(err, metrics) { if (err) { return next(err); } - // TODO: remove when data-ingestion log works - const { time, rows, type, format, gzip, size } = metrics; - - if (!time || !rows) { + const { time, rows } = metrics; + if (!rows) { return next(new Error("No rows copied")); } - // TODO: remove when data-ingestion log works - if (req.profiler) { - req.profiler.add({copyFrom: { type, format, gzip, size, rows, time }}); - res.header('X-SQLAPI-Profiler', req.profiler.toJSONString()); - } - res.send({ time, total_rows: rows