import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import com.google.common.reflect.TypeToken;
import com.google.gson.Gson;
import com.google.gson.internal.LinkedTreeMap;
result = packageDataList.get(0);
}
} catch(MarketplaceResourceException e1) {
- LOG.error("query package by csarId from db error ! " + e1.getMessage(), e1);
+ LOG.error("query package by csarId from db error ! {} {}" , e1.getMessage(), e1);
}
return result;
}
packageList = PackageManager.getInstance().queryPackageByCsarId(csarId);
downloadUri = packageList.get(0).getDownloadUri();
} catch(MarketplaceResourceException e1) {
- LOG.error("Query CSAR package by ID failed ! csarId = " + csarId, e1);
+ LOG.error("Query CSAR package by ID failed ! csarId = {} {}" , csarId, e1);
}
return downloadUri;
}
}
}
} catch(IOException e1) {
- LOG.error("judge package type error ! " + e1.getMessage(), e1);
+ LOG.error("judge package type error ! {} {}" , e1.getMessage(), e1);
}
if(isXmlCsar) {
basicInfo.setFormat(CommonConstant.PACKAGE_XML_FORMAT);
}
}
- reader.close();
} catch(IOException e) {
- LOG.error("Exception while parsing manifest file" + e, e);
+ LOG.error("Exception while parsing manifest file {}", e);
}
return basicInfo;
}
}
- reader.close();
} catch(IOException e) {
- LOG.error("Exception while parsing manifest file" + e, e);
+ LOG.error("Exception while parsing manifest file {}", e);
}
return basicInfo;