summaryrefslogtreecommitdiff
path: root/src/plugger.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-29 01:59:26 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-29 01:59:26 +0000
commit60bac0c9f558ab34c70f099db923204a84d51ffc (patch)
tree09e04f2112aeffa214bce94519b1c959f0d503fc /src/plugger.h
parentec8ed8b4b44c7b039e87faaa50bb4d503393d336 (diff)
downloadlibbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.tar.gz
libbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.tar.bz2
libbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.tar.xz
libbu++-60bac0c9f558ab34c70f099db923204a84d51ffc.zip
The plugger was dying on a HashException it should have caught, and the Logger
now allows you to include extra printf formatting in your fields just like the docs say you can.
Diffstat (limited to 'src/plugger.h')
-rw-r--r--src/plugger.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugger.h b/src/plugger.h
index 615a662..2124b7a 100644
--- a/src/plugger.h
+++ b/src/plugger.h
@@ -116,13 +116,15 @@ namespace Bu
116 116
117 void registerExternalPlugin( const char *sFName, const char *sPluginName ) 117 void registerExternalPlugin( const char *sFName, const char *sPluginName )
118 { 118 {
119 PluginReg *pReg = (PluginReg *)hPlugin[sPluginName]; 119 PluginReg *pReg;
120 if( pReg != NULL ) 120 try {
121 { 121 pReg = (PluginReg *)hPlugin[sPluginName];
122 hPlugin.erase( sPluginName ); 122 hPlugin.erase( sPluginName );
123 dlclose( pReg->dlHandle ); 123 dlclose( pReg->dlHandle );
124 delete pReg; 124 delete pReg;
125 pReg = NULL; 125 pReg = NULL;
126 } catch( Bu::HashException &e )
127 {
126 } 128 }
127 129
128 pReg = new PluginReg; 130 pReg = new PluginReg;