Ignore:
Timestamp:
Jul 30, 2013, 5:48:06 PM (11 years ago)
Author:
Marek Kurdej
Message:

Major update: using Boost.Log if PACPUS_USE_LOG is true.
Added: overloaded operator<< for QString (explicit instantiation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/src/PacpusLib/ComponentManager.cpp

    r120 r141  
    343343
    344344    LOG_INFO("starting component '" << componentName << "'...");
    345     if (!component->startComponent())
     345    if (!component->startComponent()) {
    346346        LOG_WARN("cannot start component '" << componentName << "'. It can already be started");
     347    }
    347348
    348349    return true;
     
    372373
    373374    LOG_INFO("stopping component '" << componentName << "'...");
    374     if (!component->stopComponent())
     375    if (!component->stopComponent()) {
    375376        LOG_WARN("cannot stop component '" << componentName << "'" << ". It can be already stopped");
     377    }
    376378
    377379    return true;
     
    383385
    384386    ComponentMap::iterator it = componentMap_.find(name);
    385     if (it != componentMap_.end())
     387    if (it != componentMap_.end()) {
    386388        return *it;
     389    }
    387390
    388391    LOG_WARN("cannot retrieve component '" << name << "'" << ". It does not exist");
Note: See TracChangeset for help on using the changeset viewer.