SET(CHSGEN_SOURCES
${CHSGEN_PATH}/ChecksumGenerator.cpp
${CHSGEN_PATH}/main.cpp
+ ${CYNARA_PATH}/common/config/PathConfig.cpp
)
INCLUDE_DIRECTORIES(
ADD_EXECUTABLE(${TARGET_CHSGEN} ${CHSGEN_SOURCES})
TARGET_LINK_LIBRARIES(${TARGET_CHSGEN}
- ${TARGET_CYNARA_COMMON}
crypt
)
#include <config/PathConfig.h>
#include <exceptions/FileNotFoundException.h>
#include <exceptions/UnexpectedErrorException.h>
-#include <log/log.h>
#include "ChecksumGenerator.h"
} else {
int err = errno;
if (err == ENOSYS) {
- LOGE("'crypt' function was not implemented; error [%d] : <%s>", err, strerror(err));
+ std::cerr << "'crypt' function was not implemented; error [" << err << "] : <"
+ << strerror(err) << ">" << std::endl;
} else {
- LOGE("'crypt' function error [%d] : <%s>", err, strerror(err));
+ std::cerr << "'crypt' function error [" << err << "] : <" << strerror(err) << ">"
+ << std::endl;
}
throw UnexpectedErrorException(err, strerror(err));
}
void ChecksumGenerator::printRecord(void) const {
std::unique_ptr<char, decltype(free)*> pathnameDuplicate(strdup(m_pathname.c_str()), free);
if (pathnameDuplicate == nullptr) {
- LOGE("Insufficient memory available to allocate duplicate filename: <%s>",
- m_pathname.c_str());
+ std::cerr << "Insufficient memory available to allocate duplicate filename: <"
+ << m_pathname << ">" << std::endl;
throw std::bad_alloc();
}