gpt4 book ai didi

com.asakusafw.yaess.core.YaessLogger.warn()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 06:48:49 28 4
gpt4 key购买 nike

本文整理了Java中com.asakusafw.yaess.core.YaessLogger.warn()方法的一些代码示例,展示了YaessLogger.warn()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YaessLogger.warn()方法的具体详情如下:
包路径:com.asakusafw.yaess.core.YaessLogger
类名称:YaessLogger
方法名:warn

YaessLogger.warn介绍

[英]Log a message at WARN level.
[中]以警告级别记录消息。

代码示例

代码示例来源:origin: asakusafw/asakusafw

private void closeFile() {
  try {
    this.file.close();
  } catch (IOException e) {
    YSLOG.warn(e, "W41002", label, path);
  }
}

代码示例来源:origin: asakusafw/asakusafw

private void deleteFile() {
    // FIXME more safe
    if (path.delete() == false) {
      YSLOG.warn("W41003", label, path);
    }
  }
}

代码示例来源:origin: asakusafw/asakusafw

private static void close(InputStream c) {
  try {
    c.close();
  } catch (IOException e) {
    YSLOG.warn(e, "W99004");
  }
}

代码示例来源:origin: asakusafw/asakusafw

private static void close(OutputStream c) {
    try {
      c.close();
    } catch (IOException e) {
      YSLOG.warn(e, "W99003");
    }
  }
}

代码示例来源:origin: asakusafw/asakusafw

private void releaseLock() {
  try {
    this.lock.release();
  } catch (IOException e) {
    YSLOG.warn(e, "W41001", label, path);
  }
}

代码示例来源:origin: asakusafw/asakusafw

private void checkCleanupConfigurations(ServiceProfile<?> profile) throws IOException {
  assert profile != null;
  String workingDirectory = profile.getConfiguration().get(KEY_WORKING_DIRECTORY);
  if (workingDirectory != null) {
    YSLOG.warn("W10001", profile.getPrefix(), KEY_WORKING_DIRECTORY, KEY_CLEANUP);
  }
  List<String> cleanupPrefix = extractCommand(profile, ProcessUtil.PREFIX_CLEANUP);
  if (cleanupPrefix.isEmpty() == false) {
    YSLOG.warn("W10001", profile.getPrefix(), ProcessUtil.PREFIX_CLEANUP + "*", KEY_CLEANUP);
  }
}

代码示例来源:origin: asakusafw/asakusafw

pluginLocations.add(url);
} catch (IOException e) {
  YSLOG.warn(e, "W99001", file.getAbsolutePath());

代码示例来源:origin: asakusafw/asakusafw

} catch (IOException e) {
        outputFailed = true;
        YSLOG.warn(e, "W99001");
  YSLOG.warn(e, "W99002");
} finally {
  if (closeInput) {

代码示例来源:origin: asakusafw/asakusafw

private String buildCommand(List<String> commandLineTokens, Map<String, String> environmentVariables) {
  assert commandLineTokens != null;
  assert environmentVariables != null;
  // FIXME for bsh only
  StringBuilder buf = new StringBuilder();
  for (Map.Entry<String, String> entry : environmentVariables.entrySet()) {
    if (SH_NAME.matcher(entry.getKey()).matches() == false) {
      YSLOG.warn("W00001",
          entry.getKey(),
          entry.getValue());
      continue;
    }
    if (buf.length() > 0) {
      buf.append(' ');
    }
    buf.append(entry.getKey());
    buf.append('=');
    String replaced = toLiteral(entry.getValue());
    buf.append(replaced);
  }
  for (String token : commandLineTokens) {
    if (buf.length() > 0) {
      buf.append(' ');
    }
    buf.append(toLiteral(token));
  }
  return buf.toString();
}

代码示例来源:origin: asakusafw/asakusafw

waitForComplete();
} catch (IOException e) {
  YSLOG.warn(e, "W01002", batchId);

代码示例来源:origin: asakusafw/asakusafw

throw e;
} catch (InterruptedException e) {
  YSLOG.warn(e, "W01001", batchId);
  throw e;
} finally {

代码示例来源:origin: asakusafw/asakusafw

ExecutorService executor = resourceExecutors.get(resourceId);
if (executor == null) {
  YSLOG.warn("W01001",
      context.getBatchId(),
      context.getFlowId(),

代码示例来源:origin: asakusafw/asakusafw

executePhase(batchId, flow, executionId, ExecutionPhase.FINALIZE);
      } catch (Exception e) {
        YSLOG.warn(e, "W02002", batchId, flow.getId(), executionId);
    executePhase(batchId, flow, executionId, ExecutionPhase.CLEANUP);
  } catch (Exception e) {
    YSLOG.warn(e, "W02003", batchId, flow.getId(), executionId);
  throw e;
} catch (InterruptedException e) {
  YSLOG.warn(e, "W02001", batchId, flow.getId(), executionId);
  throw e;
} finally {

代码示例来源:origin: asakusafw/asakusafw

} catch (IOException e) {
    clients.setError(client);
    YSLOG.warn(e, "W01001",
        job.getBatchId(),
        job.getFlowId(),
YSLOG.warn("E01001",
    job.getBatchId(),
    job.getFlowId(),

代码示例来源:origin: asakusafw/asakusafw

throw e;
} catch (InterruptedException e) {
  YSLOG.warn(e, "W04001",
      context.getBatchId(), context.getFlowId(), context.getExecutionId(), context.getPhase(),
      getJobLabel(), getServiceLabel(), getTrackingId(context));

代码示例来源:origin: asakusafw/asakusafw

throw e;
} catch (InterruptedException e) {
  YSLOG.warn(e, "W03001",
      context.getBatchId(), context.getFlowId(), context.getExecutionId(), context.getPhase());
  throw e;

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com