Index: openacs.org-dev/packages/acs-service-contract/tcl/acs-service-contract-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/acs-service-contract/tcl/acs-service-contract-procs.tcl,v diff -u -r1.1.1.1 -r1.1.1.2 --- openacs.org-dev/packages/acs-service-contract/tcl/acs-service-contract-procs.tcl 9 Jul 2002 17:34:58 -0000 1.1.1.1 +++ openacs.org-dev/packages/acs-service-contract/tcl/acs-service-contract-procs.tcl 8 Oct 2002 15:46:47 -0000 1.1.1.2 @@ -68,7 +68,7 @@ set proc_name [acs_sc_generate_name $contract $impl $operation] - ns_log Notice "ACS_SC_PROC: proc_name = $proc_name" + acs_sc_log SCDebug "ACS_SC_PROC: proc_name = $proc_name" foreach {impl_alias impl_pl} [acs_sc_get_alias $contract $operation $impl] break if ![info exists impl_alias] { @@ -134,7 +134,7 @@ set docblock [join $docblock "\n\r"] set arguments [join $arguments] - ns_log Notice "sc_proc: $proc_name, $arguments" + acs_sc_log SCDebug "sc_proc: $proc_name, $arguments" ad_proc $proc_name $arguments $docblock $body } @@ -201,7 +201,16 @@ } +## +## Logging +## +proc acs_sc_log {level msg} { + # If you want to debug the SC, change SCDebug to Debug below + if {![string equal "SCDebug" $level]} { + ns_log $level "$msg" + } +} @@ -212,3 +221,6 @@ + + +