在我的IDE中运行Presto时如何获取堆栈日志?

问题描述 投票:0回答:1

我最近正在学习Presto,所以我在IDE中运行了Presto。

我想获取一些堆栈日志以了解有关Presto的更多详细信息,但是我没有找到配置Presto的正确方法。

我在presto-main / etc / log.properties中找到了一个日志配置,我试图将io.prestosql从DEBUG更改为ERROR,但仍然没有得到堆栈日志。

 #
# WARNING
# ^^^^^^^
# This configuration file is for development only and should NOT be used
# in production. For example configuration, see the Presto documentation.
#

io.prestosql=DEBUG
com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory=WARN
com.ning.http.client=WARN
io.prestosql.server.PluginManager=DEBUG
logging presto
1个回答
0
投票

在正常情况下,查询异常将不记录就返回给最终用户(调用方)。如果由于完全由用户控制的原因导致查询失败(例如无效的查询语法),我们将避免重新登录。在Why is "log and throw" considered an anti-pattern?上查看更多内容。对于其他情况,应在不更改提供的log.properties中的任何内容的情况下记录异常。

© www.soinside.com 2019 - 2024. All rights reserved.