Added some things that should be logged

This commit is contained in:
netbenixcn 2020-06-03 09:21:46 +02:00
parent b6dfb7c3c3
commit a8e987f479
4 changed files with 8 additions and 21 deletions

9
main.c
View file

@ -40,20 +40,21 @@ int main(int argc, char *argv[]){
logger("Logo Displayed.");
if(!strcmp(argv[1], "--help")){
logger("Showing Help");
logger("Showing Help.");
outputHelp();
} else if (!strcmp(argv[1], "--gtk-test")){
logger("Stating GTK Test");
logger("Stating GTK Test.");
createGTKTestWindow();
} else if (!strcmp(argv[1], "--sys-info")){
logger("Showing System Information");
logger("Showing System Information.");
print_Specs();
} else if (!strcmp(argv[1], "--sql-test")){
logger("Starting SQL Test");
logger("Starting SQL Test.");
testSQLConnection();
} else {
printf("Argument unknown. Please use --help for more information.\n");
snprintf(buffer, sizeof(buffer), "[ERROR] Argument unknown. Given argument: %s", argv[1]);
logger(buffer);
}
printf("\n");