Skip to content

Commit

Permalink
Rename set_log_level to set_max_log_level
Browse files Browse the repository at this point in the history
  • Loading branch information
thkukuk committed Jan 21, 2025
1 parent 2a7d002 commit e658077
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wtmpdbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static int log_level = LOG_WARNING;
static int socket_activation = false;

static void
set_log_level (int level)
set_max_log_level (int level)
{
log_level = level;
}
Expand Down Expand Up @@ -126,7 +126,7 @@ vl_method_set_log_level(sd_varlink *link, sd_json_variant *parameters,
return sd_varlink_error(link, SD_VARLINK_ERROR_PERMISSION_DENIED, parameters);
}

set_log_level(level);
set_max_log_level(level);

log_msg (LOG_INFO, "New log setting: level=%i", level);

Expand Down Expand Up @@ -814,14 +814,14 @@ main (int argc, char **argv)
socket_activation = true;
break;
case 'd':
set_log_level(LOG_DEBUG);
set_max_log_level(LOG_DEBUG);
break;
case '?':
case 'h':
print_help ();
return 0;
case 'v':
set_log_level(LOG_INFO);
set_max_log_level(LOG_INFO);
break;
case '\255':
fprintf (stdout, "wtmpdbd (%s) %s\n", PACKAGE, VERSION);
Expand Down

0 comments on commit e658077

Please sign in to comment.