diff options
author | vakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-07-05 19:00:25 +0000 |
---|---|---|
committer | vakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-07-05 19:00:25 +0000 |
commit | add066d6c0e5a800d39646839278eb5d1e6e2030 (patch) | |
tree | 858a1f5c493fc5922537b2c119262c94f518038c /pki | |
parent | bd70b5cacb5e95ba301a513a37cb8f8942282ea6 (diff) | |
download | pki-add066d6c0e5a800d39646839278eb5d1e6e2030.tar.gz pki-add066d6c0e5a800d39646839278eb5d1e6e2030.tar.xz pki-add066d6c0e5a800d39646839278eb5d1e6e2030.zip |
Bugzilla BZ#718427 - When audit log is full, server continue to function
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2039 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/logging/LogFile.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/logging/LogFile.java b/pki/base/common/src/com/netscape/cms/logging/LogFile.java index 8c9a38410..c00955813 100644 --- a/pki/base/common/src/com/netscape/cms/logging/LogFile.java +++ b/pki/base/common/src/com/netscape/cms/logging/LogFile.java @@ -790,6 +790,11 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { } } catch (IOException e) { ConsoleError.send(new SystemEvent(CMS.getUserMessage("CMS_LOG_FLUSH_LOG_FAILED", mFileName, e.toString()))); + if (mLogSigning) { + //error in writing to signed audit log, shut down CMS + e.printStackTrace(); + shutdownCMS(); + } } catch(GeneralSecurityException gse) { // error with signed audit log, shutdown CMS gse.printStackTrace(); @@ -980,6 +985,11 @@ public class LogFile implements ILogEventListener, IExtendedPluginInfo { } } catch (IOException e) { ConsoleError.send(new SystemEvent(CMS.getUserMessage("CMS_LOG_WRITE_FAILED", mFileName, entry, e.toString()))); + if (mLogSigning) { + // Failed to write to audit log, shut down CMS + e.printStackTrace(); + shutdownCMS(); + } } catch (IllegalStateException e) { CMS.debug("LogFile: exception thrown in log(): "+e.toString()); ConsoleError.send(new SignedAuditEvent(CMS.getLogMessage(LOG_SIGNED_AUDIT_EXCEPTION,e.toString()))); |