Skip to content

Commit 4fa18ab

Browse files
mew2057John Dunham
authored and
John Dunham
committed
It turns out off does not mean disable in logging terms. Fixing PAM module to not print literally everything. (IBM#636)
1 parent c7718cb commit 4fa18ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csmd/src/pamd/src/csm_pam.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int check_users(const char* userName, char migrate_pid)
3939
return PAM_SUCCESS;
4040

4141
// Disable logging.
42-
csmutil_logging_level_set((char*)"off");
42+
csmutil_logging_level_set((char*)"disable");
4343

4444
// 1. Check the active list if the NO_CG flag is not set.
4545
csm_init_lib();

csmutil/src/csmutil_logging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void csmutil_logging_level_set(char *aLevelStr)
4242
if (strcasecmp(csmutil_logging_str[i], aLevelStr) == 0) break;
4343
if (i < NUM_SEVERITIES)
4444
{
45-
fprintf( fp, "[csmapi]: The default log level: %s...\n", aLevelStr);
45+
//fprintf( fp, "[csmapi]: The default log level: %s...\n", aLevelStr);
4646
default_log_level = (csmutil_logging_level) i;
4747
}
4848
else

0 commit comments

Comments
 (0)