Add cli option to set the verbosity level

The verbosity was set either to info (in release mode) or debug (in
debug mode).

Add a command-line argument to change it, so that users can enable debug
logs using the release:

    scrcpy -Vdebug
This commit is contained in:
Romain Vimont
2020-05-24 21:51:40 +02:00
parent 3df63c579d
commit a3ef461d73
8 changed files with 104 additions and 11 deletions

View File

@@ -9,6 +9,7 @@
#include "config.h"
#include "command.h"
#include "common.h"
#include "util/log.h"
#include "util/net.h"
struct server {
@@ -43,6 +44,7 @@ struct server {
}
struct server_params {
enum sc_log_level log_level;
const char *crop;
const char *codec_options;
struct port_range port_range;