本文整理了Java中com.intellij.openapi.diagnostic.Logger.warnAndDebugDetails()
方法的一些代码示例,展示了Logger.warnAndDebugDetails()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.warnAndDebugDetails()
方法的具体详情如下:
包路径:com.intellij.openapi.diagnostic.Logger
类名称:Logger
方法名:warnAndDebugDetails
暂无
代码示例来源:origin: tcplugins/tcWebHooks
protected boolean deleteFilesFromPluginsUnpackedDir(String[] filenames, JarReport jarReport) throws IOException {
File restPluginUnpackedDir = new File(jarReport.getApiZipFileUnpackedLocation());
boolean fileDeletedFromDir = false;
if (restPluginUnpackedDir.exists() && restPluginUnpackedDir.isDirectory()) {
for (String filename : filenames) {
Path jaxbjar = new File(restPluginUnpackedDir + File.separator + filename.replace("/", File.separator)).toPath();
if (Files.exists(jaxbjar)) {
try {
Files.delete(jaxbjar);
if (Files.notExists(jaxbjar)) {
fileDeletedFromDir = true;
jarReport.setJarAsRemovedFromUnpackedLocation(filename, true);
}
} catch (IOException e) {
jarReport.setUnpackedLocationFailureMessage(filename, e.getMessage());
Loggers.SERVER.warnAndDebugDetails("WebHookTeamCityRestApiZipPluginFixer :: Failed to delete file from unpacked location: " + e.getMessage(), e);
}
}
}
}
return fileDeletedFromDir;
}
代码示例来源:origin: JetBrains/teamcity-s3-artifact-storage-plugin
private void publishArtifactsList(AgentRunningBuild build) {
if (!myArtifacts.isEmpty()) {
final String pathPrefix = getPathPrefix(build);
try {
myHelper.publishArtifactList(myArtifacts, CollectionsUtil.asMap(S3_PATH_PREFIX_ATTR, pathPrefix));
} catch (IOException e) {
build.getBuildLogger().error(ERROR_PUBLISHING_ARTIFACTS_LIST + ": " + e.getMessage());
LOG.warnAndDebugDetails(ERROR_PUBLISHING_ARTIFACTS_LIST + "for build " + LogUtil.describe(build), e);
}
}
}
代码示例来源:origin: tcplugins/tcWebHooks
Loggers.SERVER.warnAndDebugDetails("WebHookTeamCityRestApiZipPluginFixer :: Could not remove files from rest-api.zip", e);
代码示例来源:origin: tcplugins/tcWebHooks
Loggers.SERVER.warnAndDebugDetails("WebHookTeamCityRestApiZipPluginFixer :: Could not open zip file rest-api.zip", e);
内容来源于网络,如有侵权,请联系作者删除!