diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-08-01 21:04:32 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-08-01 21:04:32 +0000 |
commit | 866e4a1fa8bd7bf20a2b3d66fc3c577a82eed1d5 (patch) | |
tree | 9aa94c2b8d75ccf2442bc80d61efe25c7178d594 /rb/src/IceRuby/Communicator.cpp | |
parent | - Adding projects for the IceStorm performance tests. (diff) | |
download | ice-866e4a1fa8bd7bf20a2b3d66fc3c577a82eed1d5.tar.bz2 ice-866e4a1fa8bd7bf20a2b3d66fc3c577a82eed1d5.tar.xz ice-866e4a1fa8bd7bf20a2b3d66fc3c577a82eed1d5.zip |
removing LoggerWrapper due to thread safety issues
Diffstat (limited to 'rb/src/IceRuby/Communicator.cpp')
-rw-r--r-- | rb/src/IceRuby/Communicator.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/rb/src/IceRuby/Communicator.cpp b/rb/src/IceRuby/Communicator.cpp index fb6d0cc1226..074a8f74e1b 100644 --- a/rb/src/IceRuby/Communicator.cpp +++ b/rb/src/IceRuby/Communicator.cpp @@ -36,12 +36,6 @@ IceRuby_Communicator_mark(Ice::CommunicatorPtr* p) ObjectFactoryPtr pof = ObjectFactoryPtr::dynamicCast((*p)->findObjectFactory("")); assert(pof); pof->mark(); - - LoggerWrapperPtr wrapper = LoggerWrapperPtr::dynamicCast((*p)->getLogger()); - if(wrapper) - { - wrapper->mark(); - } } extern "C" @@ -114,7 +108,7 @@ IceRuby_initialize(int argc, VALUE* argv, VALUE self) if(!NIL_P(logger)) { - data.logger = new LoggerWrapper(logger); + throw RubyException(rb_eArgError, "custom logger is not supported"); } if(!NIL_P(defaultContext) && !hashToContext(defaultContext, data.defaultContext)) @@ -381,20 +375,6 @@ IceRuby_Communicator_getLogger(VALUE self) { Ice::CommunicatorPtr p = getCommunicator(self); Ice::LoggerPtr logger = p->getLogger(); - - // - // The communicator's logger can either be a C++ object (such as - // the default logger supplied by the Ice run time), or a C++ - // wrapper around a Ruby implementation. If the latter, we - // return it directly. Otherwise, we create a Ruby object - // that delegates to the C++ object. - // - LoggerWrapperPtr wrapper = LoggerWrapperPtr::dynamicCast(logger); - if(wrapper) - { - return wrapper->getObject(); - } - return createLogger(logger); } ICE_RUBY_CATCH |