Forum OpenACS Development: fts_index.tcl redefines ns_log

Collapse
Posted by Steve Woodcock on

I'll mail this to the appropriate person but just in case anyone using OpenFTS is wondering why their server.log entries don't have timestamps anymore: fts_index.tcl defines its own ns_log if it thinks it isn't already defined, but the wrong test is used (info procs as opposed to info commands).

Index: fts_index.tcl
===================================================================
RCS file: /cvsroot/openfts/openfts/tcl/fts_index.tcl,v
retrieving revision 1.7
diff -u -r1.7 fts_index.tcl
--- fts_index.tcl       2001/09/18 04:58:20     1.7
+++ fts_index.tcl       2002/02/01 12:08:22
@@ -30,7 +30,7 @@

 package require Search::OpenFTS::Base

-if ![llength [info procs ns_log]] {
+if ![llength [info commands ns_log]] {

     proc ns_log {severity message} {
         puts "$severity: $message"
Collapse
Posted by Don Baccus on
Ugh ... feel free to commit that change, Steve!
Collapse
Posted by Steve Woodcock on
That ain't our file: it's part of OpenFTS (ie. openfts.sourceforge.net). I was going to post the patch there but couldn't get into the site. I'll mail it to Neophytos in a bit. We're right in the middle of putting an OpenACS 4 system live...
Collapse
Posted by Neophytos Demetriou on
Patch applied. Thanks Steve.