Skip to content

Commit

Permalink
fix: can't show rtty version by '-V'
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
zhaojh329 committed Sep 22, 2021
1 parent e8d99be commit bc6be3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ int main(int argc, char **argv)
int option_index;
int c;

log_level(LOG_DEBUG);

#ifdef SSL_SUPPORT
rtty.ssl_ctx = ssl_context_new(false);
if (!rtty.ssl_ctx)
Expand Down Expand Up @@ -221,6 +223,8 @@ int main(int argc, char **argv)

if (verbose)
log_level(LOG_DEBUG);
else
log_level(LOG_ERR);

log_info("rtty version %s\n", RTTY_VERSION_STRING);

Expand Down

0 comments on commit bc6be3c

Please sign in to comment.