pam: quiet a spurious debug message
This singular debug message gets printed even if debug is not enabled. Quiet this message when debug is not enabled for consistency.
This commit is contained in:
committed by
Yu Watanabe
parent
5cae569818
commit
f4092cb974
@@ -148,6 +148,7 @@ void pam_bus_data_disconnectp(PamBusData **_d) {
|
||||
int pam_acquire_bus_connection(
|
||||
pam_handle_t *handle,
|
||||
const char *module_name,
|
||||
bool debug,
|
||||
sd_bus **ret_bus,
|
||||
PamBusData **ret_pam_bus_data) {
|
||||
|
||||
@@ -187,7 +188,7 @@ int pam_acquire_bus_connection(
|
||||
if (r != PAM_SUCCESS)
|
||||
return pam_syslog_pam_error(handle, LOG_ERR, r, "Failed to set PAM bus data: @PAMERR@");
|
||||
|
||||
pam_syslog(handle, LOG_DEBUG, "New sd-bus connection (%s) opened.", d->cache_id);
|
||||
pam_debug_syslog(handle, debug, "New sd-bus connection (%s) opened.", d->cache_id);
|
||||
|
||||
success:
|
||||
*ret_bus = sd_bus_ref(d->bus);
|
||||
|
||||
@@ -37,7 +37,7 @@ void pam_bus_data_disconnectp(PamBusData **d);
|
||||
|
||||
/* Use a different module name per different PAM module. They are all loaded in the same namespace, and this
|
||||
* helps avoid a clash in the internal data structures of sd-bus. It will be used as key for cache items. */
|
||||
int pam_acquire_bus_connection(pam_handle_t *handle, const char *module_name, sd_bus **ret_bus, PamBusData **ret_bus_data);
|
||||
int pam_acquire_bus_connection(pam_handle_t *handle, const char *module_name, bool debug, sd_bus **ret_bus, PamBusData **ret_bus_data);
|
||||
int pam_release_bus_connection(pam_handle_t *handle, const char *module_name);
|
||||
int pam_get_bus_data(pam_handle_t *handle, const char *module_name, PamBusData **ret);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user