From dcbc5aba2e3c1c75b5441665ea776b8b19d1a1ce Mon Sep 17 00:00:00 2001
From: ramonn <noreply@pandorafms.org>
Date: Thu, 12 Sep 2013 08:20:43 +0000
Subject: [PATCH] 2013-09-12  Ramon Novoa  <rnovoa@artica.es>

	* win32/modules/pandora_module_logevent.cc: Write to the log file
	  (instead of the debug log) if Wevtapi.dll cannot be found.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8762 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
---
 pandora_agents/ChangeLog                                | 5 +++++
 pandora_agents/win32/modules/pandora_module_logevent.cc | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog
index 2125627a00..d6e0bc2788 100644
--- a/pandora_agents/ChangeLog
+++ b/pandora_agents/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-12  Ramon Novoa  <rnovoa@artica.es>
+
+	* win32/modules/pandora_module_logevent.cc: Write to the log file
+	  (instead of the debug log) if Wevtapi.dll cannot be found.
+
 2013-08-13  Ramon Novoa  <rnovoa@artica.es>
 
 	* unix/pandora_agent: Display proxy mode errors in the log file.
diff --git a/pandora_agents/win32/modules/pandora_module_logevent.cc b/pandora_agents/win32/modules/pandora_module_logevent.cc
index 2a42bd59ed..e20ad0995d 100755
--- a/pandora_agents/win32/modules/pandora_module_logevent.cc
+++ b/pandora_agents/win32/modules/pandora_module_logevent.cc
@@ -95,7 +95,7 @@ Pandora_Module_Logevent::Pandora_Module_Logevent (string name, string source, st
       	if (WINEVENT == NULL) {
 			
 			// Log to the bedug log, since this is not an error
-            pandoraDebug ("Error loading library Wevtapi.dll");
+            pandoraLog ("Library Wevtapi.dll not available");
             return;
         }