*/
#include "JSMessagePortManager.h"
-
-#include <dpl/log/log.h>
#include <dpl/shared_ptr.h>
#include <CommonsJavaScript/Validator.h>
#include <JSWebAPIException.h>
#include "JSLocalMessagePort.h"
#include "JSRemoteMessagePort.h"
#include "MessagePortJSUtil.h"
+#include <Logger.h>
#define CLASS_NAME "MessagePortManager"
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MessagePortManagerPtr messagePortManager;
JSContextRef gContext;
}
catch(BasePlatformException &e)
{
- LogError("No private object");
+ LoggerE("No private object");
return JSWebAPIException::throwException(context, exception, e);
}
}
Catch(Exception)
{
- LogError("Error on platform : " << _rethrown_exception.GetMessage());
+ LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Plugin's internal error"));
}
}
catch(BasePlatformException &e)
{
- LogError("Error on conversion : " << e.getMessage());
+ LoggerE("Error on conversion : " << e.getMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Internal error"));
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MessagePortManagerPtr messagePortManager;
JSContextRef gContext;
}
catch(BasePlatformException &e)
{
- LogError("No private object");
+ LoggerE("No private object");
return JSWebAPIException::throwException(context, exception, e);
}
}
Catch(Exception)
{
- LogError("Error on platform : " << _rethrown_exception.GetMessage());
+ LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Plugin's internal error"));
}
}
catch(BasePlatformException &e)
{
- LogError("Error on conversion : " << e.getMessage());
+ LoggerE("Error on conversion : " << e.getMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Internal error"));
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MessagePortManagerPtr messagePortManager;
JSContextRef gContext;
}
catch(BasePlatformException &e)
{
- LogError("No private object");
+ LoggerE("No private object");
return JSWebAPIException::throwException(context, exception, e);
}
}
Catch(Exception)
{
- LogError("Error on platform : " << _rethrown_exception.GetMessage());
+ LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Plugin's internal error"));
}
}
catch(BasePlatformException &e)
{
- LogError("Error on conversion : " << e.getMessage());
+ LoggerE("Error on conversion : " << e.getMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Internal error"));
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
MessagePortManagerPtr messagePortManager;
JSContextRef gContext;
}
catch(BasePlatformException &e)
{
- LogError("No private object");
+ LoggerE("No private object");
return JSWebAPIException::throwException(context, exception, e);
}
}
Catch(Exception)
{
- LogError("Error on platform : " << _rethrown_exception.GetMessage());
+ LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Plugin's internal error"));
}
}
catch(BasePlatformException &e)
{
- LogError("Error on conversion : " << e.getMessage());
+ LoggerE("Error on conversion : " << e.getMessage());
return JSWebAPIException::throwException(context, exception,
UnknownException("Internal error"));
}