(file) Return to TracePropertyOwner.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Config

Diff for /pegasus/src/Pegasus/Config/TracePropertyOwner.cpp between version 1.39 and 1.40

version 1.39, 2008/09/18 08:01:39 version 1.40, 2008/10/01 08:35:49
Line 39 
Line 39 
 /////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
  
 #include <Pegasus/Common/Tracer.h> #include <Pegasus/Common/Tracer.h>
   #include <Pegasus/Common/Logger.h>
 #include <Pegasus/Common/FileSystem.h> #include <Pegasus/Common/FileSystem.h>
 #include <Pegasus/Common/MessageLoader.h> #include <Pegasus/Common/MessageLoader.h>
 #include <Pegasus/Common/StringConversion.h> #include <Pegasus/Common/StringConversion.h>
Line 232 
Line 233 
                 properties[i].externallyVisible;                 properties[i].externallyVisible;
  
             // set the default value in the Trace             // set the default value in the Trace
             Tracer::setTraceFile(ConfigManager::getHomedPath(              Uint32 retCode = Tracer::setTraceFile(ConfigManager::getHomedPath(
                 _traceFilePath->defaultValue).getCString());                 _traceFilePath->defaultValue).getCString());
               if ( retCode == 1 )
               {
                   Logger::put_l(
                       Logger::ERROR_LOG,System::CIMSERVER,Logger::WARNING,
                       MessageLoaderParms(
                       "Config.TracePropertyOwner.UNABLE_TO_WRITE_TRACE_FILE",
                       "Unable to write to trace file $0",
                       _traceFilePath->defaultValue));
                   _traceFilePath->currentValue.clear();
               }
         }         }
         else if (String::equalNoCase(         else if (String::equalNoCase(
                      properties[i].propertyName, "traceFacility"))                      properties[i].propertyName, "traceFacility"))
Line 406 
Line 416 
     {     {
         _traceFilePath->currentValue = value;         _traceFilePath->currentValue = value;
  
         Tracer::setTraceFile(ConfigManager::getHomedPath(          Uint32 retCode = Tracer::setTraceFile(ConfigManager::getHomedPath(
             _traceFilePath->currentValue).getCString());             _traceFilePath->currentValue).getCString());
           if ( retCode == 1 )
           {
               Logger::put_l(
                   Logger::ERROR_LOG,System::CIMSERVER,Logger::WARNING,
                   MessageLoaderParms(
                   "Config.TracePropertyOwner.UNABLE_TO_WRITE_TRACE_FILE",
                   "Unable to write to trace file $0",
                   _traceFilePath->currentValue));
               _traceFilePath->currentValue.clear();
           }
     }     }
     else if (String::equalNoCase(_traceFacility->propertyName, name))     else if (String::equalNoCase(_traceFacility->propertyName, name))
     {     {


Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2