[ace-users] ACE/TAO Logging

Michael T. Carter mcarter at swri.org
Wed Jul 18 13:02:07 CDT 2007


"ACE is behaving as defined." is a valid statement to a certain extent,
in both 5.4 and new 5.5 versions.  The initial processing of the svc.conf
(logsvc.conf in my case) file is working as expected in both.  However,
I do not think the ACE_Service_Config::reconfigure() is working in the
5.5 versions.  Even just using the ACE code without the ORB_init, the
reconfigure complains with the following from the ACE::debug() output:

beginning reconfiguration at Wed Jul 18 08:24:09 2007
ACE (28484|182897092416) STDG::<ctor>, repo=0x5026c0 [1],
   name=logsvc.conf, type=0x5236f0, impl=(nil), object=(nil),
   active=0 - inserting dummy forward
ACE (28484|182897092416) SR::insert - repo=0x5026c0 [1] (1024),
   name=logsvc.conf, type=(nil), object=(nil), active=0
ACE (28484|182897092416) Service_Config_Guard:<ctor> -
   repo=0x5026c0 superceded by repo=0x5026c0
ACE (28484|182897092416) SG::process_directives_i, repo=0x5026c0 -
   <from file>
ACE (28484|182897092416) SG::initialize - repo=0x5026c0,
   looking up dynamic service 'Logger' to initialize
ACE (28484|182897092416) SG::initialize - repo=0x5026c0,
   Logger is already initialized. Remove before re-initializing.
ACE (28484|182897092416) Dynamic_Node::apply - Did dynamic on Logger 
(yyerrno=0)

So, since the initial ACE processing of the svc.conf file worked, then
it never did reconfigure the logger and it continued to work afterwards.

Just wanted to clear this up . . . I hope.
--
Michael


Steve Huston wrote:
> Hi Michael,
>
>   
>> VERSION 1.4       VERSION 1.5
>> ACE: 5.4a_p13     ACE: 5.5.9
>> TAO: 1.4aPp13     TAO: 1.5.9
>>
>> I have now updated my 1.5 versions to x.5.9.  I have even
>> updated my 1.4 version to patchlevel 13.
>>     
>
> Ok, thanks for going through this process.
>
>   
>> ACE 5.5.9 still "works" in that the original svc.conf is processed
>> and only allows the DEBUG, WARNING, and ERROR messages through.  The
>> reconfigure has the same problem in warning/error that the Logger is
>> already initialized (remove before re-initializing).
>>     
>
> Ok, so things are working properly in ACE land.
>
>   
>> Back to my original questions,
>>
>> (1) why doesn't the TAO version (ORB_init) process the svc.conf file
>>     the first time around like the ACE_Service_Config::open does
>>     
> with
>   
>>     just using ACE, and
>>     
>
> I'm not sure about this... Maybe someone more familiar with TAO
> internals can reply.
>
>   
>> (2) why doesn't the reconfigure actually work in the latest
>>     5.5* versions.
>>
>> I took a peek at the source code where the "Remove before
>>     
> re-init..."
>   
>> debug message is outputted and found the following comment in the
>> code comment:
>>
>>   // If there is an active service already, it must first be
>>     
> removed,
>   
>>   // before it could be re-installed.
>>   // IJ: This used to be the behavior, before allowing multiple
>>   // independent service repositories. Should that still be
>>     
> required?
>
> To answer the code question... Yes, it's still required. The behavior
> could be argued, but it's historically consistent.
>
>   
>> So this may not be behaving as intended.
>>     
>
> ACE is behaving as defined.
>
> -Steve
>
>
>   



More information about the Ace-users mailing list