Skip to content

Commit 7a57fbc

Browse files
Cosmetics: drop debug spam
1 parent 0e069e8 commit 7a57fbc

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

src/common/commonutils/FileUtils.c

-3
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,6 @@ int ReplaceMarkedLinesInFile(const char* fileName, const char* marker, const cha
10231023
status = (0 == errno) ? EPERM : errno;
10241024
OsConfigLogInfo(log, "ReplaceMarkedLinesInFile: cannot write to temporary file '%s' (%d)", tempFileName, status);
10251025
}
1026-
} else {
1027-
OsConfigLogInfo(log, "Skipping line: %s", line);
10281026
}
10291027

10301028
memset(line, 0, lineMax + 1);
@@ -1076,7 +1074,6 @@ int ReplaceMarkedLinesInFile(const char* fileName, const char* marker, const cha
10761074

10771075
if (0 == status)
10781076
{
1079-
OsConfigLogInfo(log, "ReplaceMarkedLinesInFile: replacing '%s' with '%s' in '%s'", marker, newline, fileName);
10801077
if (preserveAccess)
10811078
{
10821079
if (0 != (status = RenameFileWithOwnerAndAccess(tempFileName, fileName, log)))

src/common/commonutils/UserUtils.c

-5
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ static int CopyUserEntry(SimplifiedUser* destination, struct passwd* source, OsC
121121

122122
if (0 != status)
123123
{
124-
OsConfigLogError(log, "CopyUserEntry: failed to copy user entry for '%s' (uid: %u, gid: %u)", source->pw_name, source->pw_uid, source->pw_gid);
125124
ResetUserEntry(destination);
126125
}
127126

@@ -359,7 +358,6 @@ int EnumerateUsers(SimplifiedUser** userList, unsigned int* size, char** reason,
359358

360359
if (0 != (*size = GetNumberOfLinesInFile(passwdFile)))
361360
{
362-
OsConfigLogInfo(log, "EnumerateUsers: %u lines in '%s'", *size, passwdFile);
363361
listSize = (*size) * sizeof(SimplifiedUser);
364362
if (NULL != (*userList = malloc(listSize)))
365363
{
@@ -369,7 +367,6 @@ int EnumerateUsers(SimplifiedUser** userList, unsigned int* size, char** reason,
369367

370368
while ((NULL != (userEntry = getpwent())) && (i < *size))
371369
{
372-
OsConfigLogInfo(log, "EnumerateUsers: user %u: '%s' (%u, %u) in '%s'", i, userEntry->pw_name, userEntry->pw_uid, userEntry->pw_gid, passwdFile);
373370
if (0 != (status = CopyUserEntry(&((*userList)[i]), userEntry, log)))
374371
{
375372
OsConfigLogError(log, "EnumerateUsers: failed making copy of user entry (%d)", status);
@@ -836,8 +833,6 @@ int RemoveUser(SimplifiedUser* user, bool removeHome, OsConfigLogHandle log)
836833
return EPERM;
837834
}
838835

839-
OsConfigLogError(log, "RemoveUser: attempting to delete user '%s' (%u, %u) with home directory '%s'",
840-
user->username, user->userId, user->groupId, user->home);
841836
if (NULL != (command = FormatAllocateString(commandTemplate, removeHome ? "-f -r" : "-f", user->username)))
842837
{
843838
if (0 == (status = ExecuteCommand(NULL, command, false, false, 0, 0, NULL, NULL, log)))

src/modules/compliance/src/lib/ComplianceInterface.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ int ComplianceMmiSet(MMI_HANDLE clientSession, const char* componentName, const
142142

143143
try
144144
{
145-
OsConfigLogInfo(engine.log(), "MmiSet(%p, %s, %s, %.*s, %d)", clientSession, componentName, objectName, payloadSizeBytes, payload, payloadSizeBytes);
146145
std::string payloadStr(payload, payloadSizeBytes);
147146
auto object = parseJSON(payloadStr.c_str());
148147
if (NULL == object || (JSONString != json_value_get_type(object.get()) && JSONObject != json_value_get_type(object.get())))

src/modules/compliance/src/lib/Evaluator.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ Result<Status> Evaluator::ExecuteRemediation()
4545
return result.error();
4646
}
4747

48-
OsConfigLogInfo(mLog, "Remediation result: %s", result.value() == Status::Compliant ? "Compliant" : "Non-compliant");
49-
OsConfigLogInfo(mLog, "Remediation log: %s", mLogstream.str().c_str());
5048
return result;
5149
}
5250

0 commit comments

Comments
 (0)