diff --git a/objectmanager/ObjectManager.cpp b/objectmanager/ObjectManager.cpp index 12f4ef4fd..a7e3ac4c0 100644 --- a/objectmanager/ObjectManager.cpp +++ b/objectmanager/ObjectManager.cpp @@ -81,8 +81,8 @@ void ObjectManager::initialize() { for (auto const& it : objectList) { result = it.second->initialize(); if ( result != RETURN_OK ) { - object_id_t var = it.first; #if CPP_OSTREAM_ENABLED == 1 + object_id_t var = it.first; sif::error << "ObjectManager::initialize: Object 0x" << std::hex << std::setw(8) << std::setfill('0')<< var << " failed to " "initialize with code 0x" << result << std::dec <<