Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit e20279c

Browse files
authored
It turns out off does not mean disable in logging terms. Fixing PAM module to not print literally everything. (#636)
1 parent 22f8278 commit e20279c

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)