如何禁用雅司病中的调试检查?

发布于 2024-08-17 08:45:24 字数 161 浏览 4 评论 0原文

当我启动雅司病(yaws -i --conf config/yaws.conf)时,我在输出中得到这一行:

运行调试检查打开(较慢的服务器)

这取决于“-i”选项?或者我在哪里打开调试检查?配置文件中没有提及调试...

谢谢 爱德华多

When i start yaws (yaws -i --conf config/yaws.conf) i get this line in the output:

Running with debug checks turned on (slower server)

It depends on the "-i" option? Or where did i turned on debug checks? No mention of debug in the config file...

thx
edoardo

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

2024-08-24 08:45:24

在雅司病的最新版本(1.85 及更高版本)中,您可以简单地在命令行上传递 --nodebug 选项:

yaws -i --nodebug

In recent versions of yaws (1.85 and later) you can simply pass the --nodebug option on the command line:

yaws -i --nodebug
白馒头 2024-08-24 08:45:24

这是因为您在全局配置中的 flags 设置设置了调试位 (2)。如果在全局配置中设置了 GC_DEBUG,则将启用此功能。

这些是标志:

-define(GC_TTY_TRACE,                        1).
-define(GC_DEBUG,                            2).
-define(GC_AUTH_LOG,                         4).
-define(GC_COPY_ERRLOG,                      8).
-define(GC_BACKWARDS_COMPAT_PARSE,          16).
-define(GC_LOG_RESOLVE_HOSTNAME,            32).
-define(GC_FAIL_ON_BIND_ERR,                64).
-define(GC_PICK_FIRST_VIRTHOST_ON_NOMATCH, 128).
-define(GC_USE_FDSRV,                      256).
-define(GC_USE_OLD_SSL,                    512).

我认为在 yaws.config 文件中,这实际上是通过在全局部分设置 debug = false 标志来取消设置的。

更新 - 调试参数是 yaws.app 文件中应用程序环境设置的一部分,因此添加类似于

-yaws debug false

real 命令行的内容应该可以工作

This will be because your flags setting in the global config has the debug bit (2) set. If GC_DEBUG is set in the global configuration this feature will be enabled.

These are the flags:

-define(GC_TTY_TRACE,                        1).
-define(GC_DEBUG,                            2).
-define(GC_AUTH_LOG,                         4).
-define(GC_COPY_ERRLOG,                      8).
-define(GC_BACKWARDS_COMPAT_PARSE,          16).
-define(GC_LOG_RESOLVE_HOSTNAME,            32).
-define(GC_FAIL_ON_BIND_ERR,                64).
-define(GC_PICK_FIRST_VIRTHOST_ON_NOMATCH, 128).
-define(GC_USE_FDSRV,                      256).
-define(GC_USE_OLD_SSL,                    512).

I think that in the yaws.config file this is actually un-set by setting the debug = false flag in the global part.

Updated - the debug parameter is part of the env settings of the app in the yaws.app file, so adding something like

-yaws debug false

to the real command line should work

新一帅帅 2024-08-24 08:45:24

使用命令:“sudo yaws -i --nodebug”后,我的网站变得更快了一些。

After using command: "sudo yaws -i --nodebug", my website become a bit faster.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文