如何删除日志文件中有关在 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
最佳答案
由于我在互联网上没有找到任何内容,因此我删除了函数上已弃用的标签(解决方法)。
我使用的命令是
for asd in $(grep -l -- '-deprecated ' packages/acs-tcl/tcl/*.tcl); do sed 's/-deprecated //g' $asd > ${asd}2; done
然后我将文件名 vom ${asd}2 移动到 $asd
如果方法定义中有 -warn
标记,则也需要将其删除 - 否则函数会中断。
关于warnings - 如何删除 open-ACS、Project-Open 日志文件中已弃用的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32117531/