io.druid.java.util.common.logger.Logger.wtf()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(279)

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

Logger.wtf介绍

暂无

代码示例

代码示例来源:origin: io.druid/druid-processing

  1. log.wtf(e, "This can only happen if the .exists() call lied. That's f'd up.");

代码示例来源:origin: io.druid/java-util

  1. @Override
  2. public ClientResponse<InputStream> done(ClientResponse<InputStream> clientResponse)
  3. {
  4. synchronized (done) {
  5. try {
  6. // An empty byte array is put at the end to give the SequenceInputStream.close() as something to close out
  7. // after done is set to true, regardless of the rest of the stream's state.
  8. queue.put(ByteSource.empty().openStream());
  9. log.debug("Added terminal empty stream");
  10. }
  11. catch (InterruptedException e) {
  12. log.warn(e, "Thread interrupted while adding to queue");
  13. Thread.currentThread().interrupt();
  14. throw Throwables.propagate(e);
  15. }
  16. catch (IOException e) {
  17. // This should never happen
  18. log.wtf(e, "The empty stream threw an IOException");
  19. throw Throwables.propagate(e);
  20. }
  21. finally {
  22. log.debug("Done after adding %d bytes of streams", byteCount.get());
  23. done.set(true);
  24. }
  25. }
  26. return ClientResponse.<InputStream>finished(clientResponse.getObj());
  27. }

相关文章