Skip to content

Commit

Permalink
feat: add debug options
Browse files Browse the repository at this point in the history
  • Loading branch information
nidbCN committed Sep 14, 2023
1 parent 659582b commit 0ad976d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int main(int argc, char *argv[]) {
int option = (optarg[0] - 64) / 3 - 1;

DEBUG_LEVEL = option >= 0 && option < 8 ? table[option] : LOG_INFO;
log_set_level(DEBUG_LEVEL);
case 'n':
// n for network device
ifName = optarg;
Expand Down

0 comments on commit 0ad976d

Please sign in to comment.