Configure server verbosity from the client

Send the requested log level from the client.

This paves the way to configure it via a command-line argument.
This commit is contained in:
Romain Vimont
2020-05-24 21:08:22 +02:00
parent 56bff2f718
commit 3df63c579d
4 changed files with 45 additions and 14 deletions

View File

@@ -259,6 +259,11 @@ execute_server(struct server *server, const struct server_params *params) {
"/", // unused
"com.genymobile.scrcpy.Server",
SCRCPY_VERSION,
#ifndef NDEBUG
"debug",
#else
"info",
#endif
max_size_string,
bit_rate_string,
max_fps_string,