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

@@ -293,6 +293,7 @@ bool
scrcpy(const struct scrcpy_options *options) {
bool record = !!options->record_filename;
struct server_params params = {
.log_level = options->log_level,
.crop = options->crop,
.port_range = options->port_range,
.max_size = options->max_size,