neutrinolabs: do not log valid parameters as unknown

This commit is contained in:
Koichiro IWAO 2021-04-30 00:38:44 +09:00
parent aad14384cc
commit 217edb141d
No known key found for this signature in database
GPG Key ID: 03993B4065E7193B

View File

@ -451,6 +451,7 @@ lxrdp_set_param(struct mod *mod, const char *name, const char *value)
{
LOG_DEVEL(LOG_LEVEL_DEBUG, "lxrdp_set_param: name [%s] value [%s]", name, value);
}
settings = mod->inst->settings;
if (g_strcmp(name, "hostname") == 0)
@ -503,9 +504,11 @@ lxrdp_set_param(struct mod *mod, const char *name, const char *value)
{
settings->desktop_resize = g_text2bool(value);
}
else if (g_strcmp(name, "pampassword") == 0)
else if (g_strcmp(name, "pamusername") == 0 ||
g_strcmp(name, "pampassword") == 0 ||
g_strcmp(name, "pammsessionmng") == 0)
{
LOG(LOG_LEVEL_WARNING, "lxrdp_set_param: unknown name [%s] value [******]", name);
/* Valid (but unused) parameters not logged */
}
else
{