log_file = NULL;
while ((optc = getopt_long(argc, argv,
- "vhp:w:d:", long_options, NULL)) != -1) {
+ "vhp:w:d:l:", long_options, NULL)) != -1) {
switch (optc) {
case 'w':
if (optarg)
exit(EXIT_SUCCESS);
case 'd':
log_level = atoi(optarg);
- log_printf(LOG_INFO,
- _("Enables debug mode: %d"),
- log_level);
+ log_info(_("Enables debug mode: %d"), log_level);
break;
case 'l':
if (optarg)
exit(EXIT_FAILURE);
}
- log_printf(LOG_INFO, _("Web server started on port: %d"), port);
- log_printf(LOG_INFO, _("WWW directory: %s"), server_data.www_dir);
- log_printf(LOG_INFO, _("URL: http://localhost:%d"), port);
+ log_info(_("Web server started on port: %d"), port);
+ log_info(_("WWW directory: %s"), server_data.www_dir);
+ log_info(_("URL: http://localhost:%d"), port);
while (!server_stop_requested) {
pthread_mutex_lock(&mutex);