Mark Hammond committed 7685c54

Policy failure calls PyCom_LogError(), which reports a traceback.

Comments (0)

Files changed (1)


 // Class Factories do not count against the DLLs total reference count.
 static LONG factoryRefCount = 0;
-extern void PyCom_LogF(const TCHAR *fmt, ...);
-#define LogF PyCom_LogF
 CPyFactory::CPyFactory(REFCLSID guidClassID) :
 	pPyModule = PyImport_ImportModule("win32com.server.policy");
  	if ( !pPyModule )
-		LogF(_T("PythonCOM Server - The policy module could not be loaded."));
+		PyCom_LogError("PythonCOM Server - The 'win32com.server.policy' module could not be loaded.");
 		/* ### propagate the exception? */
 		return FALSE;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.