wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / DataControl / DataControlConverter.cpp
old mode 100755 (executable)
new mode 100644 (file)
index d06d456..2d1a9c0
@@ -25,6 +25,7 @@
 #include "DataType.h"
 #include <pcrecpp.h>
 #include <JSUtil.h>
+#include <Logger.h>
 
 using namespace std;
 using namespace WrtDeviceApis::Commons;
@@ -87,18 +88,18 @@ JSValueRef DataControlConverter::toFunctionOrNull(const JSValueRef& arg)
 {
        if (JSValueIsNull(m_context, arg) || JSValueIsUndefined(m_context, arg))
        {
-               LogDebug("null.");
+               LoggerD("null.");
 
                return NULL;
        } 
        else if (JSValueIsObject(m_context, arg) == false)
        {
-               LogDebug("undefined, not object");
+               LoggerD("undefined, not object");
                ThrowMsg(ConversionException, "Not a function nor JS null.");
        }
        else if (Validator(m_context).isCallback(arg)) 
        {
-               LogDebug("Function OK");
+               LoggerD("Function OK");
                return arg;
        } 
 
@@ -115,7 +116,7 @@ JSValueRef DataControlConverter::toFunction(const JSValueRef& arg)
        }       
        else if (Validator(m_context).isCallback(arg)) 
        {
-               LogDebug("Function OK");
+               LoggerD("Function OK");
                return arg;
        }