From 4e064c5f325f215905008d675ea633b6c18ea67e Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 25 Sep 2019 17:38:16 +0200 Subject: [PATCH] Unnecesario logging --- CockpitSpace/RestartSimulation.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CockpitSpace/RestartSimulation.js b/CockpitSpace/RestartSimulation.js index c1089f3fc..26f44c099 100644 --- a/CockpitSpace/RestartSimulation.js +++ b/CockpitSpace/RestartSimulation.js @@ -117,9 +117,7 @@ function newRestartSimulation () { } else { callServer('', 'ResetLogsAndData', onSaved) function onSaved (err) { - if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result) { - logger.write('[INFO] Restart Simulation -> Logs and Simulation data Deleted.') - } else { + if (err.result !== GLOBAL.DEFAULT_OK_RESPONSE.result) { logger.write('[ERROR] Restart Simulation -> Can not delete Logs and Simulation data. err = ' + err.messsage) } }