#include <cerrno>
#include <cstdio>
#include <string>
-#include <dpl/log/log.h>
+#include <dpl/log/wrt_log.h>
#include <dpl/scoped_resource.h>
#include <dpl/errno_string.h>
// Try to flush first
if (TEMP_FAILURE_RETRY(fflush(file)) != 0) {
std::string errString = GetErrnoString();
- LogPedantic("Failed to fflush scoped fclose error: "
- << errString);
+ WrtLogD("Failed to fflush scoped fclose error: %s",
+ errString.c_str());
}
// fclose cannot be retried, try to close once
if (fclose(file) != 0) {
std::string errString = GetErrnoString();
- LogPedantic("Failed scoped fclose error: " << errString);
+ WrtLogD("Failed scoped fclose error: %s", errString.c_str());
}
}
}