mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-30 22:05:12 +00:00
Add --verbosity=verbose log level
PR #2371 <https://github.com/Genymobile/scrcpy/pull/2371> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
committed by
Romain Vimont
parent
7db0189f23
commit
937fa704a6
@@ -184,7 +184,7 @@ scrcpy_print_usage(const char *arg0) {
|
||||
"\n"
|
||||
#endif
|
||||
" -V, --verbosity value\n"
|
||||
" Set the log level (debug, info, warn or error).\n"
|
||||
" Set the log level (verbose, debug, info, warn or error).\n"
|
||||
#ifndef NDEBUG
|
||||
" Default is debug.\n"
|
||||
#else
|
||||
@@ -505,6 +505,11 @@ parse_display_id(const char *s, uint32_t *display_id) {
|
||||
|
||||
static bool
|
||||
parse_log_level(const char *s, enum sc_log_level *log_level) {
|
||||
if (!strcmp(s, "verbose")) {
|
||||
*log_level = SC_LOG_LEVEL_VERBOSE;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!strcmp(s, "debug")) {
|
||||
*log_level = SC_LOG_LEVEL_DEBUG;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user