}
Catch(DPL::ZipInput::Exception::OpenFailed)
{
- LogDebug("Failed to open widget package");
+ LogError("Failed to open widget package");
return ConfigParserData();
}
Catch(DPL::ZipInput::Exception::OpenFileFailed)
{
- LogDebug("Failed to open config.xml file");
+ LogError("Failed to open config.xml file");
return ConfigParserData();
}
Catch(DPL::CopyFailed)
{
- LogDebug("Failed to extract config.xml file");
+ LogError("Failed to extract config.xml file");
return ConfigParserData();
}
Catch(ElementParser::Exception::ParseError)
{
- LogDebug("Failed to parse config.xml file");
+ LogError("Failed to parse config.xml file");
return ConfigParserData();
}
}
widgetGUID = configInfo.widget_id;
if (widgetGUID.IsNull()) {
- LogDebug("Installed widget has no GUID");
+ LogWarning("Installed widget has no GUID");
return WidgetUpdateInfo();
}
}
Catch(DPL::ZipInput::Exception::OpenFailed)
{
- LogDebug("Failed to open widget package");
+ LogError("Failed to open widget package");
return PKG_TYPE_UNKNOWN;
}
}
Catch(DPL::ZipInput::Exception::OpenFileFailed)
{
- LogDebug("Could not find config.xml");
+ LogWarning("Could not find ./config.xml");
}
Try
std::unique_ptr<DPL::ZipInput::File> configFile(
zipFile->OpenFile(WITH_OSP_XML));
if (pType == PKG_TYPE_TIZEN_WEBAPP) {
+ LogWarning("Two config.xml's found. Application type is unknown.");
return PKG_TYPE_UNKNOWN;
}
}
Catch(DPL::ZipInput::Exception::OpenFileFailed)
{
- LogDebug("Could not find wgt/config.xml");
- return PKG_TYPE_UNKNOWN;
+ LogWarning("Could not find ./res/wgt/config.xml");
}
+ if (pType == PKG_TYPE_UNKNOWN) {
+ LogWarning("config.xml not found. Application type is unknown.");
+ }
return pType;
}
{
LogInfo("Checking ACE response");
if (m_context.featureLogic->isRejected()) {
- LogDebug("Installation failure. Some devCap was not accepted by ACE.");
+ LogError("Installation failure. Some devCap was not accepted by ACE.");
ThrowMsg(Exceptions::NotAllowed, "Instalation failure. "
"Some deviceCap was not accepted by ACE.");
}
data.getStorageType().contains(CertStoreId::DEVELOPER);
if (testCertificate && !developerMode) {
- LogDebug("Widget signed by test certificate, "
+ LogError("Widget signed by test certificate, "
"but developer mode is off.");
ThrowMsg(Exceptions::InvalidPackage,
"Widget signed by test certificate, "
}
m_contextData.widgetConfig.isTestWidget = testCertificate;
} Catch(ParserSchemaException::Base) {
- LogDebug("Error occured in ParserSchema.");
+ LogError("Error occured in ParserSchema.");
ReThrowMsg(Exceptions::InvalidPackage,
"Error occured in ParserSchema.");
}
Catch(DeveloperModeValidator::Exception::Base) {
- LogDebug("Cannot validate developer certificate.");
+ LogError("Cannot validate developer certificate.");
ReThrowMsg(Exceptions::InvalidPackage,
"Cannot validate developer certificate.");
}
}
Catch(WidgetDAO::Exception::DatabaseError)
{
- LogWarning("Database failure!");
+ LogError("Database failure!");
ReThrowMsg(Exceptions::InsertNewWidgetFailed, "Database failure!");
}
Catch(DPL::DB::SqlConnection::Exception::Base)
{
- LogDebug("Database failure!");
+ LogError("Database failure!");
ReThrowMsg(Exceptions::InsertNewWidgetFailed, "Database failure!");
}
FILE* resFp = fopen(fileName.c_str(), "r");
if ( NULL == resFp) {
- LogDebug("Couldnot open file : " << fileName);
+ LogError("Couldnot open file : " << fileName);
return;
}
if (AIL_ERROR_NO_DATA == ret) {
if (ail_desktop_add(pkgname) < 0) {
- LogDebug("Failed to add ail desktop : " << pkgname);
+ LogWarning("Failed to add ail desktop : " << pkgname);
}
} else if (AIL_ERROR_OK == ret) {
if (ail_desktop_update(pkgname) < 0) {
- LogDebug("Failed to update ail desktop : " << pkgname);
+ LogWarning("Failed to update ail desktop : " << pkgname);
}
}
}
while ((entry = readdir(dir)) != NULL){
tempname = m_npsource + "/" + entry->d_name;
if(lstat(tempname.c_str(), &st) != 0) {
- LogDebug("Failed to call \"lstat\" (errno:" <<errno
+ LogWarning("Failed to call \"lstat\" (errno:" <<errno
<<") on entry - skipping");
continue;
}
if (WrtUtilRemove(backupDir.str())) {
LogDebug("Success to remove backup files : " << backupDir.str());
} else {
- LogDebug("Failed to remove backup directory : " << backupDir.str());
+ LogError("Failed to remove backup directory : " << backupDir.str());
ThrowMsg(Exceptions::RemoveBackupFailed,
"Error occurs during removing existing folder");
}
if (WrtUtilRemove(tmp)) {
LogDebug("Success to remove temp directory : " << tmp);
} else {
- LogDebug("Failed to remove temp directory : " << tmp);
+ LogError("Failed to remove temp directory : " << tmp);
ThrowMsg(Exceptions::RemoveBackupFailed,
"Error occurs during removing existing folder");
}
}
Catch(ElementParser::Exception::Base)
{
- LogDebug("Invalid widget configuration file!");
+ LogError("Invalid widget configuration file!");
*pErrCode = WRT_WM_ERR_INVALID_ARCHIVE;
return false;
}
}
Catch(ElementParser::Exception::Base)
{
- LogDebug("Invalid widget configuration file!");
+ LogError("Invalid widget configuration file!");
// _rethrown_exception.Dump();
*pErrCode = WRT_WM_ERR_INVALID_ARCHIVE;
if (-1 == TEMP_FAILURE_RETRY(closedir(dir))) {
//We must have config.xml so leaveing if we doesn't
if (!has_config_xml) {
- LogDebug("Invalid archive");
+ LogError("Invalid archive");
*pErrCode = WRT_WM_ERR_INVALID_ARCHIVE;
return false;
}
pWidgetConfigInfo.guid = configInfo.widget_id;
} else {
if (pWidgetConfigInfo.guid != configInfo.widget_id) {
- LogDebug("Invalid archive");
+ LogError("Invalid archive");
return false;
}
}
pWidgetConfigInfo.pkgname = configInfo.tizenId;
} else {
if (pWidgetConfigInfo.pkgname != configInfo.tizenId) {
- LogDebug("Invalid archive - Tizen ID not same error");
+ LogError("Invalid archive - Tizen ID not same error");
return false;
}
}
pWidgetConfigInfo.version = configInfo.version;
} else {
if (pWidgetConfigInfo.version != configInfo.version) {
- LogDebug("Invalid archive");
+ LogError("Invalid archive");
return false;
}
}
}
Catch(DPL::DB::SqlConnection::Exception::Base)
{
- LogDebug("Failed to handle StepDbUpdate!");
+ LogError("Failed to handle StepDbUpdate!");
ReThrowMsg(Exceptions::DatabaseFailure,
"Failed to handle StepDbUpdate!");
}
iri(iri_parse(url), iri_destroy);
if (!iri.get()) {
- LogDebug("Error in parsing widget id.");
+ LogError("Error in parsing widget id.");
return; // m_schemaMatch == false;
}
m_handle = pkgmgr_installer_new();
if(!m_handle) {
- LogDebug("Fail to get pkgmgr installer handle");
+ LogError("Fail to get pkgmgr installer handle");
return false;
}
if (m_reqType != PKGMGR_REQ_INSTALL &&
m_reqType != PKGMGR_REQ_UNINSTALL)
{
- LogDebug("Fail to get request type of pkgmgr");
+ LogError("Fail to get request type of pkgmgr");
pkgmgr_installer_free(m_handle);
m_handle = NULL;
return false;
}
} else {
- LogDebug("Fail to get information of pkgmgr's request");
+ LogError("Fail to get information of pkgmgr's request");
pkgmgr_installer_free(m_handle);
m_handle = NULL;
return false;
{
if (!m_initialized)
{
- LogDebug("PkgmgrSingal not yet intialized");
+ LogError("PkgmgrSingal not yet intialized");
return false;
}
{
if (!m_initialized)
{
- LogDebug("PkgmgrSingal not yet intialized");
+ LogError("PkgmgrSingal not yet intialized");
return false;
}
if (name.empty())
{
- LogDebug("name is empty");
+ LogError("name is empty");
return false;
}
{
if (!m_initialized)
{
- LogDebug("PkgmgrSingal not yet intialized");
+ LogError("PkgmgrSingal not yet intialized");
return false;
}
if (m_handle == NULL || m_type.empty() || m_pkgname.empty())
{
- LogDebug("Some data of PkgmgrSignal is empty");
+ LogError("Some data of PkgmgrSignal is empty");
return false;
}
m_handle, m_type.c_str(), m_pkgname.c_str(),
key.c_str(), value.c_str()))
{
- LogDebug("Fail to send pkgmgr signal");
+ LogError("Fail to send pkgmgr signal");
return false;
}
{
if (!m_initialized)
{
- LogDebug("PkgmgrSingal not yet intialized");
+ LogError("PkgmgrSingal not yet intialized");
}
return m_pkgname;
{
if (!m_initialized)
{
- LogDebug("PkgmgrSingal not yet intialized");
+ LogError("PkgmgrSingal not yet intialized");
}
return m_reqType;
{
if (!m_initialized)
{
- LogDebug("PkgmgrSingal not yet intialized");
+ LogError("PkgmgrSingal not yet intialized");
}
return m_noPopup;
if (WRT_SUCCESS != status) {
// Failure
- LogDebug("Step failed");
+ LogError("Step failed");
This->m_returnStatus = -1;
if (This->popupsEnabled()) {