tizen 2.4 release
[framework/web/wrt-commons.git] / modules / core / include / dpl / scoped_fclose.h
similarity index 89%
rename from modules_mobile/core/include/dpl/scoped_fclose.h
rename to modules/core/include/dpl/scoped_fclose.h
index b029803..e774ef2 100644 (file)
@@ -26,7 +26,7 @@
 #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>
 
@@ -44,14 +44,14 @@ struct ScopedFClosePolicy
             // 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());
             }
         }
     }