зеркало из https://github.com/microsoft/SCXcore.git
Add log messages for posting process instance to OMI
This commit is contained in:
Родитель
1820d434da
Коммит
ed1fef3cf5
|
@ -43,12 +43,14 @@ static void EnumerateOneInstance(Context& context,
|
||||||
SCXLogHandle& log = SCXCore::g_ProcessProvider.GetLogHandle();
|
SCXLogHandle& log = SCXCore::g_ProcessProvider.GetLogHandle();
|
||||||
|
|
||||||
// Add the key properties first.
|
// Add the key properties first.
|
||||||
scxulong pid;
|
scxulong pid = 0;
|
||||||
if (processinst->GetPID(pid))
|
if (processinst->GetPID(pid))
|
||||||
{
|
{
|
||||||
inst.Handle_value(StrToUTF8(StrFrom(pid)).c_str());
|
inst.Handle_value(StrToUTF8(StrFrom(pid)).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SCX_LOGHYSTERICAL(log, StrAppend(L"UnixProcess Provider sending instance for handle: ", StrFrom(pid)));
|
||||||
|
|
||||||
// Add keys of scoping operating system
|
// Add keys of scoping operating system
|
||||||
try {
|
try {
|
||||||
SCXCoreLib::NameResolver mi;
|
SCXCoreLib::NameResolver mi;
|
||||||
|
@ -199,6 +201,8 @@ static void EnumerateOneInstance(Context& context,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
context.Post(inst);
|
context.Post(inst);
|
||||||
|
|
||||||
|
SCX_LOGHYSTERICAL(log, StrAppend(L"UnixProcess Provider sent instance for handle: ", StrFrom(pid)));
|
||||||
}
|
}
|
||||||
|
|
||||||
SCX_UnixProcess_Class_Provider::SCX_UnixProcess_Class_Provider(
|
SCX_UnixProcess_Class_Provider::SCX_UnixProcess_Class_Provider(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче