Browse Source

added function name in log

Daniel Tartavel 10 months ago
parent
commit
a05861c83f
1 changed files with 2 additions and 8 deletions
  1. 2 8
      main.c

+ 2 - 8
main.c

@@ -632,14 +632,8 @@ int main()
632 632
 								printlog(strlog, WARNING, 0);
633 633
 							}else if (id == 0)
634 634
 							{
635
-								if (cfg.commande[0] != 0)
636
-								{
637
-									printlog(str, INFO, 0);
638
-									r = system( str );
639
-								}else
640
-								{
641
-									printlog("no command defined: no command launched", WARNING, 0);
642
-								}
635
+								printlog(str, INFO, 0);
636
+								r = system( str );
643 637
 								exit(r);
644 638
 							}
645 639
 						}else