[cpp-sp] branch main updated: Fix a couple of nits.
Scott Cantor
cantor.2 at osu.edu
Thu Jan 23 13:59:07 UTC 2025
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=0bb1ebf82add79b9ccd3663c325494495d71b6d3
The following commit(s) were added to refs/heads/main by this push:
new 0bb1ebf8 Fix a couple of nits.
0bb1ebf8 is described below
commit 0bb1ebf82add79b9ccd3663c325494495d71b6d3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Jan 23 08:59:03 2025 -0500
Fix a couple of nits.
---
shibsp/logging/impl/NativeEventLog.mc | 2 +-
shibsp/logging/impl/WindowsLoggingService.cpp | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/shibsp/logging/impl/NativeEventLog.mc b/shibsp/logging/impl/NativeEventLog.mc
index c1b5555d..0e7ee26f 100644
--- a/shibsp/logging/impl/NativeEventLog.mc
+++ b/shibsp/logging/impl/NativeEventLog.mc
@@ -50,7 +50,7 @@ MessageId=+1
Severity=Warning
SymbolicName=SHIBSP_CATEGORY_WARN
Language=English
-War Category
+Warn Category
.
MessageId=+1
diff --git a/shibsp/logging/impl/WindowsLoggingService.cpp b/shibsp/logging/impl/WindowsLoggingService.cpp
index 96d0e2d8..0dc5cfe6 100644
--- a/shibsp/logging/impl/WindowsLoggingService.cpp
+++ b/shibsp/logging/impl/WindowsLoggingService.cpp
@@ -15,7 +15,7 @@
/**
* logging/impl/WindowsLoggingService.cpp
*
- * Logging service implementation using the Windows Even log.
+ * Logging service implementation using the Windows Event log.
*/
#include "internal.h"
@@ -63,7 +63,7 @@ WindowsLoggingService::WindowsLoggingService(const ptree& pt) : AbstractLoggingS
if (m_EventSource == NULL) {
string error("Could not load event source check HKLM\\SYSTEM\\CurrentControlSet\\EventLog\\Application\\" SHIB_EVENT_SOURCE_NAME ". GLE = ");
error += to_string(GetLastError());
- throw new ConfigurationException(error.c_str());
+ throw ConfigurationException(error.c_str());
}
}
@@ -127,3 +127,4 @@ void WindowsLoggingService::outputMessage(const Category& category, Priority::Va
const char* msgs[2] {category.getName().c_str(),message};
::ReportEventA(m_EventSource, EventTypeFor(priority), EventCategoryFor(priority), EventIdFor(priority), NULL, 2, 0, msgs, NULL);
}
+
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list