application: Propagate verbosity to main instance
If another instance of calls was already running, invoking calls with `-v` flag would set the verbosity for the newly created process and then exit if it was not the primary instance.
This commit is contained in:
@@ -278,3 +278,17 @@ calls_log_get_verbosity (void)
|
||||
{
|
||||
return verbosity;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
calls_log_set_verbosity (guint new_verbosity)
|
||||
{
|
||||
int diff = verbosity - new_verbosity;
|
||||
|
||||
if (new_verbosity == verbosity)
|
||||
return 0;
|
||||
|
||||
verbosity = new_verbosity;
|
||||
|
||||
return diff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user