如何在Open-ACS,Project-Open的日志文件中删除不建议使用的警告 [英] How to remove deprecated warning in log-file of open-ACS, Project-Open

查看:156
本文介绍了如何在Open-ACS,Project-Open的日志文件中删除不建议使用的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在日志文件中删除有关在openACS,project-open中使用已弃用proc的警告?

How to remove the warning in the log-file for using a deprecated proc within openACS, project-open?

部分配置:

# Debug is turned on for demo servers. Please turn off for
# performance critical production installations.
set debug               false

#---------------------------------------------------------------------
# 
# Access log -- nslog 
# 
#---------------------------------------------------------------------
ns_section ns/server/${server}/module/nslog
        ns_param         debug  false
        ns_param         dev            false
        ns_param         enablehostnamelookup false
        ns_param         file   ${serverroot}/log/${server}.log
        ns_param         logcombined    true
        ns_param         extendedheaders        COOKIE
#       ns_param         logrefer       false
#       ns_param         loguseragent            false
        ns_param         logreqtime     true
        ns_param         maxbackup      1000
        ns_param         rollday        *
        ns_param         rollfmt        %Y-%m-%d-%H:%M
        ns_param         rollhour       0
        ns_param         rollonsignal            true
        ns_param         rolllog        true

推荐答案

假设您在错误日志中看到的警告的格式为:

Assuming the warning you're seeing in the error log is of the form:

"Deprecated proc $proc_name used"

有两种方法可以禁用此功能.

There are 2 ways to disable this.

1)在AOLserver配置文件中,验证/添加此文件(请记住要在之后重新启动AOLserver)

1) In the AOLserver config file, verify/add this (remember to restart AOLserver after)

set debug false

还要在 ns/server/$ {server}/module/nslog 部分中,确保此行存在

also in the ns/server/${server}/module/nslog section, make sure this line is there

ns_param   debug              $debug

而且,还要在 ns_section ns/parameters 部分中,确保已设置

And, also in the ns_section ns/parameters section, make sure this is set

ns_param   debug              $debug

2)另外,您也可以从packages \ acs-bootstrap-installer \ tcl \ 00-proc-procs.tcl删除或注释掉该块

2) Alternatively, you can remove or comment out this block from packages\acs-bootstrap-installer\tcl\00-proc-procs.tcl

if { $warn_p } {
        set log_code "ns_log Debug \"Deprecated proc $proc_name used\"\n"
}

这篇关于如何在Open-ACS,Project-Open的日志文件中删除不建议使用的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆