如何解决来自 Amazon Elasticached 库的 INFO 日志记录为 ERROR
我在使用 Amazon Elasticached 库时遇到问题。
run()
方法有以下两行:
getLogger().info("Starting configuration poller.");
还有一点:
getLogger().info("Endpoint to use for configuration access in this poll " + endpointToGetConfig.toString());
每分钟记录一次。涉及到 ScheduledThreadPoolExecutor,因此似乎有意每分钟调用一次 run()
方法。
但是,日志不是作为 INFO,而是作为 ERROR:
14:36:59,297 ERROR [stderr] (pool-10-thread-1) 2021-07-05 14:36:59.297 INFO net.spy.memcached.ConfigurationPoller: Starting configuration poller.
14:36:59,297 ERROR [stderr] (pool-10-thread-1) 2021-07-05 14:36:59.297 INFO net.spy.memcached.ConfigurationPoller: Endpoint to use for configuration access in this poll NodeEndPoint - HostName:*hostname* IpAddress:*ip address* Port:*port*
有什么建议我可以将这些记录为 INFO 吗? 提前致谢。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。