From a05861c83f9c0f82cf1339a86bdac06b5a57ac2a Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 8 Jun 2020 17:00:29 +0200 Subject: [PATCH] added function name in log --- main.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/main.c b/main.c index 5a411fb..6f1c5b3 100644 --- a/main.c +++ b/main.c @@ -632,14 +632,8 @@ int main() printlog(strlog, WARNING, 0); }else if (id == 0) { - if (cfg.commande[0] != 0) - { - printlog(str, INFO, 0); - r = system( str ); - }else - { - printlog("no command defined: no command launched", WARNING, 0); - } + printlog(str, INFO, 0); + r = system( str ); exit(r); } }else