Index: openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl,v diff -u -r1.55 -r1.56 --- openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 17 Oct 2003 08:41:50 -0000 1.55 +++ openacs-4/packages/acs-authentication/tcl/authentication-procs.tcl 1 Nov 2003 08:45:36 -0000 1.56 @@ -181,7 +181,7 @@ set result(auth_status) failed_to_connect set result(auth_message) $errmsg global errorInfo - ns_log Error "Error invoking authentication driver for authority_id = $authority_id: $errorInfo" + ns_log Error "auth::authenticate: error invoking authentication driver for authority_id = $authority_id: $errorInfo" } # Returns: @@ -211,7 +211,7 @@ return [array get result] } default { - ns_log Error "Illegal auth_status code '$result(auth_status)' returned from authentication driver for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" + ns_log Error "auth::authenticate: Illegal auth_status code '$result(auth_status)' returned from authentication driver for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" set result(auth_status) "failed_to_connect" set result(auth_message) "Internal error during authentication" @@ -233,7 +233,7 @@ } } default { - ns_log Error "Illegal account_status code '$result(account_status)' returned from authentication driver for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" + ns_log Error "auth::authenticate: Illegal account_status code '$result(account_status)' returned from authentication driver for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" set result(account_status) "closed" set result(account_message) "Internal error during authentication" @@ -275,7 +275,7 @@ } } default { - ns_log Error "Illegal account_status code '$result(account_status)' returned from auth::get_local_account for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" + ns_log Error "auth::authenticate: Illegal account_status code '$result(account_status)' returned from auth::get_local_account for authority_id $authority_id ([auth::authority::get_element -authority_id $authority_id -element pretty_name])" set result(account_status) "closed" set result(account_message) "Internal error during authentication" @@ -336,12 +336,12 @@ auth::authority::get -authority_id $authority_id -array authority if { [empty_string_p $authority(register_impl_id)] } { - ns_log Error "parameter value for RegisterAuthority is an authority without registration driver, defaulting to local authority" + ns_log Error "auth::get_register_authority: parameter value for RegisterAuthority is an authority without registration driver, defaulting to local authority" set authority_id [auth::authority::local] } } else { # The authority doesn't exist - use the local authority - ns_log Error "parameter RegisterAuthority has the invalid value $parameter_value. Defaulting to local authority" + ns_log Error "auth::get_register_authority: parameter RegisterAuthority has the invalid value $parameter_value. Defaulting to local authority" set authority_id [auth::authority::local] } @@ -535,7 +535,7 @@ set creation_info(creation_status) failed_to_connect set creation_info(creation_message) $errmsg global errorInfo - ns_log Error "Error invoking account registration driver for authority_id = $authority_id: $errorInfo" + ns_log Error "auth::create_user: Error invoking account registration driver for authority_id = $authority_id: $errorInfo" db_abort_transaction } @@ -862,7 +862,7 @@ } } set username "$username-$number" - ns_log Notice "User's email was already used as someone else's username, setting username to $username" + ns_log Notice "auth::create_local_account: user's email was already used as someone else's username, setting username to $username" } } @@ -899,7 +899,7 @@ set result(creation_status) "failed_to_connect" set result(creation_message) "We experienced an error while trying to register an account for you." global errorInfo - ns_log Error "Error creating local account.\n$errorInfo" + ns_log Error "auth::create_local_account: Error creating local account.\n$errorInfo" return [array get result] } @@ -922,7 +922,7 @@ auth::send_email_verification_email -user_id $user_id } { global errorInfo - ns_log Error "auth::get_local_account: Error sending out email verification email to email $email:\n$errorInfo" + ns_log Error "auth::create_local_account: Error sending out email verification email to email $email:\n$errorInfo" set auth_info(account_message) "We got an error sending out the email for email verification" } } @@ -1251,7 +1251,7 @@ auth::send_email_verification_email -user_id $user_id } { global errorInfo - ns_log Error "auth::get_local_account: Error sending out email verification email to email $email:\n$errorInfo" + ns_log Error "auth::check_local_account_status: Error sending out email verification email to email $email:\n$errorInfo" set result(account_message) "We got an error sending out the email for email verification" } } @@ -1281,7 +1281,7 @@ default { set result(account_message) \ "There was a problem authenticating the account. Most likely, the database contains users with no member_state." - ns_log Error "Problem with registration state machine: user_id $user_id has member_state '$member_state'" + ns_log Error "auth::check_local_account_status: problem with registration state machine: user_id $user_id has member_state '$member_state'" } } Index: openacs-4/packages/acs-automated-testing/tcl/aa-test-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/tcl/aa-test-procs.tcl,v diff -u -r1.19 -r1.20 --- openacs-4/packages/acs-automated-testing/tcl/aa-test-procs.tcl 26 Sep 2003 07:45:38 -0000 1.19 +++ openacs-4/packages/acs-automated-testing/tcl/aa-test-procs.tcl 1 Nov 2003 08:45:36 -0000 1.20 @@ -321,7 +321,7 @@ foreach category $cats { if {[string trim $category] != ""} { if {[lsearch [nsv_get aa_test categories] $category] == -1} { - ns_log warning "acs-automated-testing: Unknown testcase category $category" + ns_log warning "aa_register_case: Unknown testcase category $category" } lappend filtered_cats $category } @@ -342,7 +342,7 @@ } } if {!$found} { - ns_log warning "acs-automated-testing: Unknown init class $init_class" + ns_log warning " aa_register_case: Unknown init class $init_class" } else { lappend filtered_inits $init_class } @@ -573,7 +573,7 @@ where testcase_id = :testcase_id" db_dml delete_testcase_final_results $sql - ns_log notice "Running testcase $testcase_id" + ns_log debug "aa_run_testcase: Running testcase $testcase_id" set catch_val [catch _${package_key}__$testcase_id msg] if {$catch_val} { @@ -731,13 +731,13 @@ incr aa_testcase_test_id if {$test_result == "pass"} { - ns_log Debug "PASSED: $aa_testcase_id, $test_notes" + ns_log Debug "aa_log_result: PASSED: $aa_testcase_id, $test_notes" incr aa_testcase_passes } elseif {$test_result == "fail"} { - ns_log Error "FAILED: $aa_testcase_id, $test_notes" + ns_log Error "aa_log_result: FAILED: $aa_testcase_id, $test_notes" incr aa_testcase_fails } else { - ns_log Debug "LOG: $aa_testcase_id, $test_notes" + ns_log Debug "aa_log_result: LOG: $aa_testcase_id, $test_notes" set test_result "log" } # Notes in database can only hold so many characters @@ -762,7 +762,7 @@ if {$test_fails == 0} { } else { - ns_log Error "FAILED: $aa_testcase_id, $test_fails tests failed" + ns_log Error "aa_log_final: FAILED: $aa_testcase_id, $test_fails tests failed" } db_dml testcase_result_insert { Index: openacs-4/packages/acs-automated-testing/tcl/example-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-automated-testing/tcl/example-procs.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-automated-testing/tcl/example-procs.tcl 11 Nov 2001 18:03:52 -0000 1.1 +++ openacs-4/packages/acs-automated-testing/tcl/example-procs.tcl 1 Nov 2003 08:45:36 -0000 1.2 @@ -22,7 +22,7 @@ @author Peter Harper @creation-date 24 July 2001 } { - ns_log notice "Auditing: $name, $value" + ns_log debug "aa_example_write_audit_entry: Auditing: $name, $value" return 1 } Index: openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl,v diff -u -r1.13 -r1.14 --- openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl 7 Jul 2003 12:25:53 -0000 1.13 +++ openacs-4/packages/acs-content-repository/tcl/filter-procs.tcl 1 Nov 2003 08:45:36 -0000 1.14 @@ -68,23 +68,23 @@ variable revision_id if { [template::util::is_nil item_id] } { - ns_log notice "No active item in content::get_content" + ns_log warning "content::get_content: No active item in content::get_content" return } # Get the live revision set revision_id [db_string get_revision ""] if { [template::util::is_nil revision_id] } { - ns_log notice "No live revision for item $item_id" + ns_log notice "content::get_content: No live revision for item $item_id" return } # Get the mime type, decide if we want the text set mime_type [db_string get_mime_type ""] if { [template::util::is_nil mime_type] } { - ns_log notice "No such revision: $reivision_id" + ns_log notice "content::get_content: No such revision: $revision_id" return } @@ -106,7 +106,7 @@ # Get (all) the content (note this is really dependent on file type) if {![db_0or1row get_content "" -column_array content]} { - ns_log Notice "No data found for item $item_id, revision $revision_id" + ns_log notice "content::get_content: No data found for item $item_id, revision $revision_id" return 0 } @@ -174,7 +174,7 @@ db_0or1row get_template_info "" -column_array item_info if { ![info exists item_info] } { - ns_log Notice "No content found for url $url" + ns_log notice "content::init: no content found for url $url" return 0 } } @@ -192,7 +192,7 @@ set live_revision [db_string get_live_revision ""] if { [template::util::is_nil live_revision] } { - ns_log Notice "No live revision found for content item $item_id" + ns_log notice "content::init: no live revision found for content item $item_id" return 0 } set revision_id $live_revision @@ -206,7 +206,7 @@ db_1row get_template_url "" -column_array info if { [string equal $info(template_url) {}] } { - ns_log Notice "No template found to render content item $item_id in context '$context'" + ns_log notice "content::init: No template found to render content item $item_id in context '$context'" return 0 } Index: openacs-4/packages/acs-content-repository/tcl/item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/Attic/item-procs.tcl,v diff -u -r1.14 -r1.15 --- openacs-4/packages/acs-content-repository/tcl/item-procs.tcl 24 Oct 2003 16:03:33 -0000 1.14 +++ openacs-4/packages/acs-content-repository/tcl/item-procs.tcl 1 Nov 2003 08:45:36 -0000 1.15 @@ -114,7 +114,7 @@ set item_id [get_item_from_revision $revision_id] if { [template::util::is_nil item_id] } { - ns_log notice "No such revision: $reivision_id" + ns_log warning "item::get_revision_content: No such revision: $reivision_id" return 0 } } else { @@ -143,7 +143,7 @@ db_0or1row grc_get_all_content "" -column_array content if { ![array exists content] } { - ns_log Notice "No data found for item $item_id, revision $revision_id" + ns_log warning "item::get_revision_content: No data found for item $item_id, revision $revision_id" return 0 } @@ -407,7 +407,7 @@ set live_revision [db_string glr_get_live_revision ""] if { [template::util::is_nil live_revision] } { - ns_log notice "WARNING: No live revision for item $item_id" + ns_log warning "item::get_live_revision: No live revision for item $item_id" return "" } else { return $live_revision @@ -491,7 +491,7 @@ set item_url [get_url $item_id] if { [template::util::is_nil item_url] } { - ns_log notice "WARNING: No item URL found for content item $item_id" + ns_log warning "item::get_extended_url: No item URL found for content item $item_id" return "" } @@ -529,7 +529,7 @@ set revision_id [get_live_revision $item_id] if { [template::util::is_nil revision_id] } { - ns_log notice "WARNING: No live revision for content item $item_id" + ns_log warning "item::get_best_revision: No live revision for content item $item_id" return "" } @@ -651,7 +651,7 @@ if { [empty_string_p $item_id] } { set item_id [get_item_from_revision $revision_id] if { [empty_string_p $item_id] } { - ns_log notice "No such revision: $reivision_id" + ns_log notice "item::get_content: no such revision: $reivision_id" return 0 } } Index: openacs-4/packages/acs-content-repository/tcl/publish-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/publish-procs.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-content-repository/tcl/publish-procs.tcl 16 Sep 2002 10:56:15 -0000 1.4 +++ openacs-4/packages/acs-content-repository/tcl/publish-procs.tcl 1 Nov 2003 08:45:36 -0000 1.5 @@ -300,7 +300,7 @@ # If an error happened, abort if { ![template::util::is_nil error_msg] } { - ns_log notice "WARNING: $error_msg" + ns_log Warning "publish::handle::image: WARNING: $error_msg" return "" } @@ -381,11 +381,11 @@ set ::content::template_url [item::get_template_url $item_id] if { [string equal $::content::template_url {}] } { - ns_log notice "MERGE: No template for item $item_id" + ns_log Warning "publish::merge_with_template: no template for item $item_id" return "" } - ns_log notice "MERGE: Template for item $item_id is $::content::template_url" + ns_log debug "publish::merge_with_template: template for item $item_id is $::content::template_url" # Get the full path to the template set root_path [content::get_template_root] @@ -400,7 +400,7 @@ # Parse the template and return the result publish::push_id $item_id $revision_id - ns_log notice "MERGE: Parsing $file_stub" + ns_log debug "publish::merge_with_template: parsing $file_stub" set html [eval "template::adp_parse \"$file_stub\" \[list $adp_args\]"] publish::pop_id @@ -612,7 +612,7 @@ } if { [template::util::is_nil revision_id] } { - ns_log notice "HANDLER: No live revision for $item_id" + ns_log warning "publish::handle_item: No live revision for $item_id" return "" } @@ -632,18 +632,18 @@ if { ![info exists opts(refresh)] && \ [info exists revision_html($revision_key)] } { - ns_log notice "HANDLER: Fetching $item_id from cache" + ns_log debug "publish::handle_item: Fetching $item_id from cache" return $revision_html($revision_key) } else { # Render the item and cache it - ns_log notice "HANDLER: Rendering item $item_id" + ns_log debug "publish::handle_item: Rendering item $item_id" item::get_mime_info $revision_id mime_info set item_handler [get_mime_handler $mime_info(mime_type)] if { [template::util::is_nil item_handler] } { - ns_log notice "HANDLER: No mime handler for mime type $mime_info(mime_type)" + ns_log warning "publish::handle_item: No mime handler for mime type $mime_info(mime_type)" return "" } @@ -657,7 +657,7 @@ } set html [eval $code] - ns_log notice "HANDLER: Caching html for revision $revision_id" + ns_log debug "publish::handle_item: Caching html for revision $revision_id" set revision_html($revision_key) $html return $html @@ -857,7 +857,7 @@ upvar current_page_root current_page_root foreach root_path $paths { - ns_log Notice "FOREACH_PUBLISH_PATH: root_path: $root_path" + ns_log debug "publish::foreach_publish_path: root_path: $root_path" set current_page_root $root_path set filename [ns_normalizepath "/$root_path/$url"] uplevel $code @@ -895,7 +895,7 @@ " -file $filename ns_chmod $filename 0764 - ns_log notice "PUBLISH: Wrote revision $revision_id to $filename" + ns_log debug "publish::write_multiple_blobs: Wrote revision $revision_id to $filename" } $root_path } @@ -914,12 +914,12 @@ @see publish::write_multiple_blobs } { - ns_log Notice "WRITE_MULTIPLE_FILES: root_path = $root_path" + ns_log debug "publish::write_multiple_files: root_path = $root_path" foreach_publish_path $url { mkdirs $filename template::util::write_file $filename $text ns_chmod $filename 0764 - ns_log notice "PUBLISH: Wrote text to $filename" + ns_log debug "publish::write_multiple_files: Wrote text to $filename" } $root_path } @@ -975,8 +975,7 @@ set item_id [db_string get_one_revision ""] if { [template::util::is_nil item_id] } { - ns_log notice \ - "WARNING: publish::write_content: No such revision $revision_id" + ns_log warning "publish::write_content: No such revision $revision_id" return "" } } else { @@ -987,7 +986,7 @@ set file_url [item::get_extended_url $item_id -revision_id $revision_id] # Write blob/text to file - ns_log notice "Writing item $item_id to $file_url" + ns_log debug " publish::write_content: writing item $item_id to $file_url" if { [info exists opts(text)] } { db_transaction { @@ -1008,8 +1007,7 @@ # Determine if the blob is null. If it is, give up (or else the # ns_ora blob_get_file will crash). if { [item::content_is_null $revision_id] } { - ns_log notice \ - "WARNING: publish::write_content: No content supplied for revision $revision_id" + ns_log warning "publish::write_content: No content supplied for revision $revision_id" return "" } Index: openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl,v diff -u -r1.39 -r1.40 --- openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 22 Sep 2003 19:44:28 -0000 1.39 +++ openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 1 Nov 2003 08:45:36 -0000 1.40 @@ -225,7 +225,7 @@ for {set hour $start_hour} {$hour <= $end_hour} {incr hour} { if {$max_n_events < $n_events($hour)} { set max_n_events $n_events($hour) - ns_log Notice "BMA-DEBUG-CAL: Setting max_n_events to $max_n_events" + ns_log debug "BMA-DEBUG-CAL: Setting max_n_events to $max_n_events" } } Index: openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl,v diff -u -r1.17 -r1.18 --- openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl 28 Oct 2003 10:56:16 -0000 1.17 +++ openacs-4/packages/acs-developer-support/tcl/acs-developer-support-procs.tcl 1 Nov 2003 08:45:36 -0000 1.18 @@ -386,7 +386,7 @@ @author Lars Pind (lars@pinds.com) @creation-date 31 August 2000 } { - ns_log Warning "Developer-support user-switching [ad_decode $enabled_p 1 "enabled" "disabled"]" + ns_log Notice "Developer-support user-switching [ad_decode $enabled_p 1 "enabled" "disabled"]" nsv_set ds_properties user_switching_enabled_p $enabled_p } @@ -396,7 +396,7 @@ @author Lars Pind (lars@pinds.com) @creation-date 31 August 2000 } { - ns_log Warning "Developer-support database stats [ad_decode $enabled_p 1 "enabled" "disabled"]" + ns_log Notice "Developer-support database stats [ad_decode $enabled_p 1 "enabled" "disabled"]" nsv_set ds_properties database_enabled_p $enabled_p } Index: openacs-4/packages/acs-lang/tcl/lang-catalog-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/lang-catalog-procs.tcl,v diff -u -r1.35 -r1.36 --- openacs-4/packages/acs-lang/tcl/lang-catalog-procs.tcl 29 Oct 2003 13:40:15 -0000 1.35 +++ openacs-4/packages/acs-lang/tcl/lang-catalog-procs.tcl 1 Nov 2003 08:45:36 -0000 1.36 @@ -49,7 +49,7 @@ #set default_charset [encoding system] # LARS: Default to utf-8 set default_charset utf-8 - ns_log Warning "charset $charset not supported by tcl, assuming $default_charset" + ns_log Warning "lang::catalog::default_charset_if_unsupported: charset $charset not supported by tcl, assuming $default_charset" set charset_to_use $default_charset } else { set charset_to_use $charset @@ -111,7 +111,7 @@ set return_value 1 } else { # Catalog file with unknown prefix - ns_log Warning "The file $file_path has unknown prefix $prefix" + ns_log Warning "lang::catalog::is_upgrade_backup_file: The file $file_path has unknown prefix $prefix" set return_value 0 } } @@ -278,7 +278,7 @@ # Create the catalog directory if it doesn't exist set catalog_dir [package_catalog_dir $filename_info(package_key)] if { ![file isdirectory $catalog_dir] } { - ns_log Notice "Creating new catalog directory $catalog_dir" + ns_log Notice "lang::catalog::export_to_file: Creating new catalog directory $catalog_dir" file mkdir $catalog_dir } @@ -288,7 +288,7 @@ ns_log Notice "Backing up catalog file $file_path" file copy -- $file_path $backup_path } else { - ns_log Notice "Not backing up $file_path as backup file already exists" + ns_log Notice "lang::catalog::export_to_file: Not backing up $file_path as backup file already exists" } # Since the output charset, and thus the filename, may have changed since @@ -328,7 +328,7 @@ puts $catalog_file_id "" close $catalog_file_id - ns_log Notice "Wrote $message_count messages to file $file_path with encoding $file_encoding" + ns_log Notice "lang::catalog::export_to_file: Wrote $message_count messages to file $file_path with encoding $file_encoding" } ad_proc -public lang::catalog::export { @@ -398,13 +398,13 @@ @author Peter Marklund (peter@collaboraid.biz) } { if {![regexp {/([^/]*)\.([^/]*)\.(?:xml|cat)$} $catalog_filename match base msg_encoding]} { - ns_log Warning "Charset info missing in filename assuming $catalog_filename is iso-8859-1" + ns_log Warning "lang::catalog::read_file: Charset info missing in filename assuming $catalog_filename is iso-8859-1" set msg_encoding iso-8859-1 - } + } set msg_encoding [default_charset_if_unsupported $msg_encoding] - ns_log Notice "reading $catalog_filename in $msg_encoding" + ns_log Notice "lang::catalog::read_file: reading $catalog_filename in $msg_encoding" set in [open $catalog_filename] fconfigure $in -encoding [ns_encodingforcharset $msg_encoding] set catalog_file_contents [read $in] @@ -557,7 +557,7 @@ # want that to trigger an upgrade. set upgrade_p [ad_decode $higher_version_p 1 1 0] } - ns_log Notice "Loading messages in file $file_path [ad_decode $upgrade_p 0 "" ", upgrading"]" + ns_log Notice "lang::catalog::import_from_file: Loading messages in file $file_path [ad_decode $upgrade_p 0 "" ", upgrading"]" # Get the messages array, and the list of message keys to iterate over array set messages_array [lindex [array get catalog_array messages] 1] @@ -576,7 +576,7 @@ template::util::multirow_foreach all_messages { set message_key @all_messages.message_key@ if { [lsearch -exact $messages_array_names $message_key] < 0 } { - ns_log Notice "Marking message $message_key in locale $locale as deleted" + ns_log Notice "lang::catalog::import_from_file: Marking message $message_key in locale $locale as deleted" db_dml mark_message_as_deleted {} # One approach to deleted message keys after upgrade is to consider those @@ -639,7 +639,7 @@ set system_package_version [system_package_version_name $package_key] # Note that export_messages_to_file demands a certain filename format - ns_log Notice "Saving overwritten messages during upgrade for package $package_key and locale $locale in file $filename" + ns_log Notice "lang::catalog::import_from_file: Saving overwritten messages during upgrade for package $package_key and locale $locale in file $filename" set file_path [get_catalog_file_path \ -backup_from_version ${system_package_version} \ -backup_to_version $catalog_array(package_version) \ @@ -693,7 +693,7 @@ # Issue a warning and exit if there are no catalog files if { [empty_string_p $catalog_files] } { - ns_log Warning "No catalog files found for package $package_key" + ns_log Warning "lang::catalog::import: No catalog files found for package $package_key" continue } @@ -702,7 +702,7 @@ if { [catch {import_from_file $file_path} errMsg] } { global errorInfo - ns_log Error "The import of file $file_path failed, error message is:\n\n${errMsg}\n\nstack trace:\n\n$errorInfo\n\n" + ns_log Error "lang::catalog::import: The import of file $file_path failed, error message is:\n\n${errMsg}\n\nstack trace:\n\n$errorInfo\n\n" } } } @@ -756,7 +756,7 @@ if { [file exists $file_path] } { lappend catalog_files $file_path } else { - ns_log Error "Catalog file $file_path not found. Failed to import messages for package $package_key and locale $locale" + ns_log Error "lang::catalog::get_catalog_paths_for_import: Catalog file $file_path not found. Failed to import messages for package $package_key and locale $locale" } } @@ -788,7 +788,7 @@ if [catch { set translated_message [lang_babel_translate $message en_$lang] } errmsg] { - ns_log Notice "Error translating $message into $lang: $errmsg" + ns_log Notice "lang::catalog::translate: Error translating $message into $lang: $errmsg" } else { lang::message::register $lang $package_key $message_key $translated_message } Index: openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl,v diff -u -r1.35 -r1.36 --- openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl 28 Oct 2003 12:25:46 -0000 1.35 +++ openacs-4/packages/acs-lang/tcl/lang-message-procs.tcl 1 Nov 2003 08:45:36 -0000 1.36 @@ -509,8 +509,6 @@ if { ![nsv_exists lang_message_cache executed_p] } { nsv_set lang_message_cache executed_p 1 - ns_log Notice "lang::message::cache - Initializing message cache ..." - if { [empty_string_p $package_key] } { set package_where_clause "" } else { Index: openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl,v diff -u -r1.27 -r1.28 --- openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl 16 Oct 2003 10:50:12 -0000 1.27 +++ openacs-4/packages/acs-lang/tcl/lang-util-procs.tcl 1 Nov 2003 08:45:36 -0000 1.28 @@ -144,15 +144,14 @@ } { # Return if there are no files to process if { [llength $file_list] == 0 } { - ns_log Warning "lang::util::replace_temporary_tags_with_lookups - \ - Invoked with no files to process, returning" + ns_log Warning "lang::util::replace_temporary_tags_with_lookups: Invoked with no files to process, returning" return } # Get package_key set first_file [lindex $file_list 0] if { ![regexp {/?packages/([^/]+)/} $first_file match package_key] } { - error "lang::util::replace_temporary_tags_with_lookups - Could not extract package_key from file $first_file" + error "lang::util::replace_temporary_tags_with_lookups: Could not extract package_key from file $first_file" } # Always create new keys in en_US @@ -175,14 +174,14 @@ # Loop over and process each file foreach file $file_list { - ns_log Notice "lang::util::replace_temporary_tags_with_lookups - processing file $file" + ns_log debug "lang::util::replace_temporary_tags_with_lookups: processing file $file" set full_file_path "[acs_root_dir]/$file" regexp {\.([^.]+)$} $file match file_ending # Attempt a backup of the file first. Do not overwrite an old backup file. if { [catch "file -- copy $full_file_path \"${full_file_path}.orig\"" errmsg] } { - ns_log Warning [list lang::util::replace_temporary_tags_with_lookups - The file $full_file_path \ + ns_log Warning [list lang::util::replace_temporary_tags_with_lookups: The file $full_file_path could not be backed up before message key extraction since backup file \ ${full_file_path}.orig already exists] } @@ -252,7 +251,8 @@ if { ![string equal $message_key $unique_key] } { # The message key had to be changed to be made unique - ns_log Warning [list The message key $message_key was changed to $unique_key \ + ns_log Warning [list lang::util::replace_temporary_tags_with_lookups - \ + The message key $message_key was changed to $unique_key \ to be made unique. If the value was mistyped and should have been \ the same as previously then you must manually remove the entry for \ $unique_key from the catalog file and change the key in \ Index: openacs-4/packages/acs-lang/tcl/localization-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-lang/tcl/localization-procs.tcl,v diff -u -r1.13 -r1.14 --- openacs-4/packages/acs-lang/tcl/localization-procs.tcl 12 Oct 2003 06:57:10 -0000 1.13 +++ openacs-4/packages/acs-lang/tcl/localization-procs.tcl 1 Nov 2003 08:45:37 -0000 1.14 @@ -190,7 +190,7 @@ # Fall back on en_US if grouping is not on valid format if { ![string equal $locale en_US] && ![regexp {^[0-9 ]+$} $grouping] } { - ns_log Error "acs-lang.localization-grouping key has invalid value $grouping for locale $locale" + ns_log Warning "lc_numeric: acs-lang.localization-grouping key has invalid value $grouping for locale $locale" return [lc_numeric $num $fmt en_US] } @@ -219,7 +219,7 @@ set row_returned [db_0or1row lc_currency_select {}] if { !$row_returned } { - ns_log Notice "Unsupported monetary currency, defaulting digits to 2" + ns_log Warning "lc_monetary_currency: Unsupported monetary currency, defaulting digits to 2" set fractional_digits 2 set html_entity "" } @@ -562,12 +562,12 @@ set local_time [db_exec_plsql utc_to_local {}] } errmsg] } { - ns_log Warning "Query exploded on time conversion from UTC, probably just an invalid date, $time_value: $errmsg" + ns_log Warning "lc_time_utc_to_local: Query exploded on time conversion from UTC, probably just an invalid date, $time_value: $errmsg" } if {[empty_string_p $local_time]} { # If no conversion possible, log it and assume local is as given (i.e. UTC) - ns_log Notice "Timezone adjustment in ad_localization.tcl found no conversion to UTC for $time_value $tz" + ns_log Notice "lc_time_utc_to_local: Timezone adjustment in ad_localization.tcl found no conversion to UTC for $time_value $tz" } return $local_time @@ -592,12 +592,12 @@ set utc_time [db_exec_plsql local_to_utc {}] } errmsg] } { - ns_log Warning "Query exploded on time conversion to UTC, probably just an invalid date, $time_value: $errmsg" + ns_log Warning "lc_time_local_to_utc: Query exploded on time conversion to UTC, probably just an invalid date, $time_value: $errmsg" } if {[empty_string_p $utc_time]} { # If no conversion possible, log it and assume local is as given (i.e. UTC) - ns_log Notice "Timezone adjustment in ad_localization.tcl found no conversion to local time for $time_value $tz" + ns_log Notice "lc_time_local_to_utc: Timezone adjustment in ad_localization.tcl found no conversion to local time for $time_value $tz" } return $utc_time @@ -666,7 +666,7 @@ with_catch errmsg { set time_value [db_exec_plsql convert {}] } { - ns_log Warning "Error converting timezone: $errmsg" + ns_log Warning "lc_time_tz_convert: Error converting timezone: $errmsg" } return $time_value } Index: openacs-4/packages/acs-ldap-authentication/tcl/ldap-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-ldap-authentication/tcl/ldap-procs.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-ldap-authentication/tcl/ldap-procs.tcl 20 Apr 2001 20:51:09 -0000 1.1 +++ openacs-4/packages/acs-ldap-authentication/tcl/ldap-procs.tcl 1 Nov 2003 08:45:37 -0000 1.2 @@ -56,7 +56,7 @@ exactly one entry that matches, then it returns the DN of that entry. Otherwise it returns the empty string. } { - ns_log debug "LDAP_GET_DN_FROM_EMAIL $email" + ns_log debug "ldap_get_dn_from_email: $email" # Set the LDAP environment variables util_unlist [ldap_set_environment] url rootdn rootpw basedn security_method @@ -75,7 +75,7 @@ if ![ldap_valid_value_p $dn] { # There was a problem with the query - ns_log Notice "ldap_get_dn_from_email: $dn" + ns_log Notice "ldap_get_dn_from_email: invalid value $dn" return "" } @@ -357,7 +357,7 @@ (:object_id, :dn) } } errmsg] { - ns_log warning "Failed on insert into ldap_attributes for object $object_id with dn $dn: $errmsg" + ns_log warning "ldap_set_environment: Failed on insert into ldap_attributes for object $object_id with dn $dn: $errmsg" return 0 } Index: openacs-4/packages/acs-mail/tcl/acs-mail-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-mail/tcl/acs-mail-init.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-mail/tcl/acs-mail-init.tcl 25 Oct 2001 23:49:20 -0000 1.2 +++ openacs-4/packages/acs-mail/tcl/acs-mail-init.tcl 1 Nov 2003 08:45:37 -0000 1.3 @@ -34,10 +34,10 @@ if { [string equal $encoded_content $expected_result] } { nsv_set acs_mail ns_uuencode_works_p 1 - ns_log Notice "acs-mail: ns_uuencode works!!" + ns_log debug "acs-mail: ns_uuencode works!!" } else { nsv_set acs_mail ns_uuencode_works_p 0 - ns_log Notice "acs-mail: ns_uuencode broken - will use the slow tcl version" + ns_log Warning "acs-mail: ns_uuencode broken - will use the slow tcl version" } } Index: openacs-4/packages/acs-tcl/tcl/acs-permissions-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/acs-permissions-procs.tcl,v diff -u -r1.16 -r1.17 --- openacs-4/packages/acs-tcl/tcl/acs-permissions-procs.tcl 16 Oct 2003 23:06:29 -0000 1.16 +++ openacs-4/packages/acs-tcl/tcl/acs-permissions-procs.tcl 1 Nov 2003 08:45:37 -0000 1.17 @@ -101,7 +101,7 @@ if {!${party_id}} { ad_maybe_redirect_for_registration } else { - ns_log notice "$party_id doesn't have $privilege on object $object_id" + ns_log notice "permission::require_permission: $party_id doesn't have $privilege on object $object_id" ad_return_forbidden \ "Permission Denied" \ "
Index: openacs-4/packages/acs-tcl/tcl/admin-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/admin-init.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-tcl/tcl/admin-init.tcl 3 Oct 2003 09:21:39 -0000 1.6 +++ openacs-4/packages/acs-tcl/tcl/admin-init.tcl 1 Nov 2003 08:45:37 -0000 1.7 @@ -15,10 +15,10 @@ set admin_ssl_filters_installed_p 1 db_foreach path_select {} { - ns_log Notice "Processing RestrictToSSL for $url" + ns_log Notice "admin-init.tcl: Processing RestrictToSSL for $url" foreach pattern [parameter::get -package_id $package_id -parameter RestrictToSSL] { ad_register_filter preauth GET "$url$pattern" ad_restrict_to_https - ns_log Notice "URLs matching \"$url$pattern\" are restricted to SSL" + ns_log Notice "admin-init.tcl: URLs matching \"$url$pattern\" are restricted to SSL" } } Index: openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl,v diff -u -r1.67 -r1.68 --- openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl 27 Oct 2003 15:06:36 -0000 1.67 +++ openacs-4/packages/acs-tcl/tcl/apm-install-procs.tcl 1 Nov 2003 08:45:37 -0000 1.68 @@ -25,7 +25,7 @@ ### Scan for all unregistered .info files. - ns_log "Notice" "Scanning for new unregistered packages..." + ns_log Notice "apm_scan_packages: Scanning for new unregistered packages..." set new_spec_files [list] # Loop through all directories in the /packages directory, searching each for a # .info file. @@ -56,7 +56,7 @@ } if { [llength $new_spec_files] == 0 } { - ns_log "Notice" "No new packages found." + ns_log Notice "apm_scan_packages: No new packages found." } return $new_spec_files } @@ -79,10 +79,10 @@ } { set old_version_p 0 set found_p 0 - ns_log Debug "Scanning for $dependency_uri version $dependency_version" + ns_log Debug "apm_dependency_provided_p: Scanning for $dependency_uri version $dependency_version" db_foreach apm_dependency_check {} { if { $version_p >= 0 } { - ns_log Debug "Dependency satisfied by previously installed package" + ns_log Debug "apm_dependency_provided_p: Dependency satisfied by previously installed package" set found_p 1 } elseif { $version_p == -1 } { set old_version_p 1 @@ -103,7 +103,7 @@ set provided_p [db_string version_greater_p {}] if { $provided_p >= 0 } { - ns_log Debug "Dependency satisfied in list of provisions." + ns_log Debug "apm_dependency_provided_p: Dependency satisfied in list of provisions." return 1 } else { set old_version_p 1 @@ -437,7 +437,7 @@ # Just to get us started set updated_p 1 - ns_log Debug "STARTING DEPENDENCY CHECK" + ns_log Debug "apm_dependency_check_new: STARTING DEPENDENCY CHECK" # Outer loop tries to find a package from the repository to add if # we're stuck because of unsatisfied dependencies @@ -462,7 +462,7 @@ if { ![info exists provided($req_uri)] || \ [apm_version_names_compare $provided($req_uri) $req_version]== -1 } { - ns_log Debug "$package_key requires $req_uri $req_version => failed" + ns_log Debug "apm_dependency_check_new: $package_key requires $req_uri $req_version => failed" set satisfied_p 0 @@ -472,7 +472,7 @@ set required($req_uri) $req_version } } else { - ns_log Debug "$package_key requires $req_uri $req_version => OK" + ns_log Debug "apm_dependency_check_new: $package_key requires $req_uri $req_version => OK" } } @@ -534,7 +534,7 @@ array unset version array set version $repository($package_key) - ns_log Debug "Considering $package_key: [array get version]" + ns_log Debug "apm_dependency_check_new: Considering $package_key: [array get version]" # Let's see if this package provides anything we need foreach prov $version(provides) { @@ -544,7 +544,7 @@ if { [info exists required($prov_uri)] && \ [apm_version_names_compare $required($prov_uri) $prov_version] <= 0 } { - ns_log Debug "Adding $package_key, as it provides $prov_uri $prov_version" + ns_log Debug "apm_dependency_check_new: Adding $package_key, as it provides $prov_uri $prov_version" # If this package provides something that's required in a version high enough # add it to the pending list @@ -591,9 +591,9 @@ [apm_version_names_compare $provided($req_uri) $req_version] == -1 } { lappend failed($package_key) [list $req_uri $req_version] if { [info exists provided($req_uri)] } { - ns_log Debug "Failed dependency: $package_key requires $req_uri $req_version, but we only provide $provided($req_uri)" + ns_log Debug "apm_dependency_check_new: Failed dependency: $package_key requires $req_uri $req_version, but we only provide $provided($req_uri)" } else { - ns_log Debug "Failed dependency: $package_key requires $req_uri $req_version, but we don't have it" + ns_log Debug "apm_dependency_check_new: Failed dependency: $package_key requires $req_uri $req_version, but we don't have it" } } } @@ -754,7 +754,7 @@ if { !$version_id } { # There was an error. - ns_log Error "Package $package_key could not be installed. Received version_id $version_id" + ns_log Error "apm_package_install: Package $package_key could not be installed. Received version_id $version_id" apm_callback_and_log $callback "The package version could not be created." } # Install the parameters for the version. @@ -769,7 +769,7 @@ apm_callback_and_log $callback "\n" } elseif { [string equal $file_type "ctl_file"] } { - ns_log Debug "APM: Now processing $file_path of type ctl_file" + ns_log Debug "apm_package_install_data_model: Now processing $file_path of type ctl_file" if { !$ul_p } { apm_callback_and_log $callback "Installed $version(package-name), version $version(name).
" } { global errorInfo - ns_log Error "Error installing $version(package-name) version $version(name): $errmsg\n$errorInfo" + ns_log Error "apm_package_install: Error installing $version(package-name) version $version(name): $errmsg\n$errorInfo" apm_callback_and_log -severity Error $callback "Failed to install $version(package-name), version $version(name). The following error was generated:
@@ -830,7 +830,7 @@ # Another package is mounted at the path so we cannot mount global errorInfo set error_text "Package $version(package-name) could not be mounted at /$version(auto-mount) , there may already be a package mounted there, the error is: $error" - ns_log Error "$error_text \n\n$errorInfo" + ns_log Error "apm_package_install: $error_text \n\n$errorInfo" apm_callback_and_log $callback "$error_text
" } @@ -1010,7 +1010,7 @@ foreach item $data_model_files { set file_path [lindex $item 0] set file_type [lindex $item 1] - ns_log Debug "APM: Now processing $file_path of type $file_type" + ns_log Debug "apm_package_install_data_model: Now processing $file_path of type $file_type" if {![string compare $file_type "data_model_create"] || \ ![string compare $file_type "data_model_upgrade"] } { if { !$ul_p } { @@ -1033,7 +1033,7 @@ db_source_sqlj_file -callback $callback "$path/$file_path" apm_callback_and_log $callback "
-@contact_table@ +@contact_table;noquote@
Index: openacs-4/packages/calendar/tcl/calendar-outlook-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/tcl/calendar-outlook-procs.tcl,v
diff -u -r1.11 -r1.12
--- openacs-4/packages/calendar/tcl/calendar-outlook-procs.tcl 25 Sep 2003 08:22:05 -0000 1.11
+++ openacs-4/packages/calendar/tcl/calendar-outlook-procs.tcl 1 Nov 2003 08:45:37 -0000 1.12
@@ -122,7 +122,8 @@
}
- ns_log Notice "DTSTART = $DTSTART"
+ ns_log debug "calendar::outlook::format_item: DTSTART = $DTSTART"
+
regexp {^([0-9]*)T} $DTSTART all CREATION_DATE
set DESCRIPTION $cal_item(description)
set TITLE $cal_item(name)
Index: openacs-4/packages/chat/tcl/chat-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat/tcl/chat-procs.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/chat/tcl/chat-procs.tcl 30 Sep 2003 12:10:05 -0000 1.2
+++ openacs-4/packages/chat/tcl/chat-procs.tcl 1 Nov 2003 08:45:37 -0000 1.3
@@ -12,7 +12,7 @@
if [nsv_get chat server_started] {
return
}
- ns_log notice "Starting chat server"
+ ns_log notice "chat_start_server: Starting chat server"
set port [ad_parameter ServerPort]
set path "ns/server/[ns_info server]/module/nssock"
set host_location "[ns_config $path Address]"
@@ -39,7 +39,7 @@
ns_thread begindetached "chat_broadcast_to_applets $host_location $port"
ns_thread begindetached "chat_receive_from_server $host_location $port"
- ns_log notice "Chat server started."
+ ns_log notice "chat_start_server: Chat server started."
nsv_set chat server_started 1
}
@@ -51,7 +51,7 @@
set r [lindex $fds 0]
set w [lindex $fds 1]
- ns_log notice "Ready to broadcast message to applets."
+ ns_log debug "chat_broadcast_to_applets: Ready to broadcast message to applets."
# Register to java chat server.
puts $w "
$description
$table" $headers
Index: openacs-4/packages/download/tcl/download-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/download/tcl/download-procs.tcl,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/download/tcl/download-procs.tcl 17 May 2003 10:29:27 -0000 1.10
+++ openacs-4/packages/download/tcl/download-procs.tcl 1 Nov 2003 08:45:38 -0000 1.11
@@ -122,7 +122,7 @@
{ reason_other ""}
}
- ns_log Notice "download_file_downloader: $revision_id"
+ ns_log Debug "download_file_downloader: downloading $revision_id"
set user_id [ad_verify_and_get_user_id]
set download_ip [ad_conn peeraddr]
@@ -200,7 +200,6 @@
ad_proc download_validate_metadata { repository_id metadata_info archive_type_id } {
Validate metadata arguments for a given archive_type
} {
- ns_log Notice "FOOOO: $metadata_info"
array set metadata $metadata_info
set metadata_with_missing_responses [list]
##Iterate over the metadata information
@@ -252,7 +251,7 @@
}
-# ns_log Notice "LOGGING: Metadata $pretty_name: $metadata($metadata_id)"
+ ns_log Debug "LOGGING: Metadata $pretty_name: $metadata($metadata_id)"
}
if { [llength $metadata_with_missing_responses] > 0 } {
ad_complain "You didn't respond to all required sections. You skipped:"
Index: openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl,v
diff -u -r1.20 -r1.21
--- openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl 28 Aug 2003 09:41:53 -0000 1.20
+++ openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl 1 Nov 2003 08:45:38 -0000 1.21
@@ -13,7 +13,7 @@
# someone new logs in
ad_proc ec_user_session_logout {{why ""}} {
ad_set_cookie -replace t -max_age 0 user_session_id 0
- ns_log notice "user_session_id cookie expired"
+ ns_log debug "ec_user_session_logout: user_session_id cookie expired"
return filter_ok
}
Index: openacs-4/packages/edit-this-page/tcl/etp-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/tcl/etp-init.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/edit-this-page/tcl/etp-init.tcl 17 May 2003 10:32:00 -0000 1.8
+++ openacs-4/packages/edit-this-page/tcl/etp-init.tcl 1 Nov 2003 08:45:38 -0000 1.9
@@ -60,7 +60,7 @@
}
} errmsg]} {
- ns_log Notice "ETP: define 'Journal Issue' failed: $errmsg"
+ ns_log Warning "ETP: define 'Journal Issue' failed: $errmsg"
}
if { [catch {
@@ -73,7 +73,7 @@
}
} errmsg]} {
- ns_log Notice "ETP: define 'Journal Articles' failed: $errmsg"
+ ns_log Warning "ETP: define 'Journal Articles' failed: $errmsg"
}
@@ -87,7 +87,7 @@
}
} errmsg]} {
- ns_log Notice "ETP: define 'News Items' failed: $errmsg"
+ ns_log Warning "ETP: define 'News Items' failed: $errmsg"
} else {
etp::define_application news {
Index: openacs-4/packages/edit-this-page/tcl/etp-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/tcl/etp-procs.tcl,v
diff -u -r1.15 -r1.16
--- openacs-4/packages/edit-this-page/tcl/etp-procs.tcl 7 Oct 2003 18:46:24 -0000 1.15
+++ openacs-4/packages/edit-this-page/tcl/etp-procs.tcl 1 Nov 2003 08:45:38 -0000 1.16
@@ -95,7 +95,7 @@
# for each attribute, ensure an entry in acs_attributes
foreach attribute $attribute_metadata {
if {[llength $attribute] != 6} {
- ns_log Error "etp::make_content_type ($content_type) failed:
+ ns_log Error "etp::define_content_type ($content_type) failed:
attribute_metadata record has incorrect format"
return
}
@@ -131,7 +131,7 @@
array set application_params [list]
}
set application_params($name) $params
- ns_log Notice "ETP application $name is $application_params($name)"
+ ns_log debug "ETP define_application name $name is $application_params($name)"
}
ad_proc -public modify_application { name params } {
@@ -142,7 +142,7 @@
array set param_array $application_params($name)
array set param_array $params
set application_params($name) [array get param_array]
- ns_log Notice "ETP application $name is modified to $application_params($name)"
+ ns_log debug "ETP modify_application application $name is modified to $application_params($name)"
}
ad_proc -public get_defined_applications { } {
@@ -276,7 +276,7 @@
array set pa [etp::get_pa [ad_conn package_id] $name $content_type]
}
} errmsg] } {
- ns_log Notice "Error from etp::get_pa was:\n $errmsg"
+ ns_log debug "Error from etp::get_pa was:\n$errmsg"
# Page not found. Redirect admins to setup page;
# otherwise report 404 error.
@@ -435,7 +435,7 @@
set param_name "content_${attr_name}_attr_name"
}
- ns_log Notice "Asking for $param_name"
+ ns_log debug "get_attribute_pretty_name: Asking for $param_name"
set pretty_name [etp::get_application_param $param_name]
}
@@ -610,7 +610,7 @@
set extra_where_clauses [db_map gci_where_clause]
set columns [db_map gci_columns_clause]
- ns_log warning "columns: $columns"
+ ns_log debug "get_content_items: columns: $columns"
set limit_clause ""
@@ -650,10 +650,10 @@
if { [lsearch -exact { item_id revision_id content publish_date } $arg] != -1 } {
append columns ",\n r.$arg"
} else {
- ns_log Notice "extended attribute named $arg"
+ ns_log debug "get_content_items: extended attribute named $arg"
set attr_desc [etp::get_attribute_desc $arg $content_type]
if { ![empty_string_p $attr_desc] } {
- ns_log Notice "adding it"
+ ns_log debug "get_content_items: adding it"
set lookup_sql [etp::get_attribute_lookup_sql $attr_desc]
append columns ",\n $lookup_sql"
}
Index: openacs-4/packages/edit-this-page/tcl/etp-sc-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/tcl/etp-sc-procs.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/edit-this-page/tcl/etp-sc-procs.tcl 9 Jul 2003 14:01:05 -0000 1.3
+++ openacs-4/packages/edit-this-page/tcl/etp-sc-procs.tcl 1 Nov 2003 08:45:38 -0000 1.4
@@ -22,7 +22,7 @@
db_0or1row revision_datasource "" -column_array datasource
set content_type [db_string get_content_type {}]
- ns_log notice "ETP:content_type=$content_type"
+ ns_log debug "etp::revision_datasource: content_type=$content_type"
# call a specially named proc to extend search content for
# this content_type if it exists
# we pass in the name of the tcl array for the datasource
@@ -75,7 +75,7 @@
db_exec_plsql install_binding {}
}
} on_error {
- ns_log error "ETP: Service contract implementation for content type \"${content_type}\" is not valid"
+ ns_log Error "etp::create_search_impl: Service contract implementation for content type \"${content_type}\" is not valid"
}
}
@@ -88,7 +88,7 @@
@author Dave Bauer
} {
# check for service contract here
- ns_log notice "ETP: search_contract_exists_p content type=$content_type
+ ns_log debug "etp::search_impl_exists_p: search_contract_exists_p content type=$content_type
exists_p=[acs_sc_binding_exists_p FtsContentProvider $content_type]"
return [acs_sc_binding_exists_p FtsContentProvider $content_type]
}
@@ -104,6 +104,6 @@
} {
if {[exists_and_not_null array_name]} {
upvar search_array $array_name
- ns_log notice "ETP:search:etp_page_revision arrayname:$array_name"
+ ns_log debug "etp::search::etp_page_revision: arrayname:$array_name"
}
}
\ No newline at end of file
Index: openacs-4/packages/email-handler/tcl/email-handler-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/email-handler/tcl/email-handler-procs.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/email-handler/tcl/email-handler-procs.tcl 10 Sep 2002 22:22:53 -0000 1.2
+++ openacs-4/packages/email-handler/tcl/email-handler-procs.tcl 1 Nov 2003 08:45:38 -0000 1.3
@@ -25,7 +25,7 @@
return ""
}
}
- ns_log Notice "email_handler_map_tagged_message couldn't find anything to do with a tag of \"$tag\"
+ ns_log Warning "email_handler_map_tagged_message couldn't find anything to do with a tag of \"$tag\"
Message:
$msg
"
@@ -45,17 +45,17 @@
select tag, content from incoming_email_queue
where id = :id
}
- ns_log Notice "email queue processing queued_msg $id"
+ ns_log debug "email queue processing queued_msg $id"
email_handler_map_tagged_message $tag $content
db_dml delete_from_queue "delete from incoming_email_queue where id = :id"
- ns_log Notice "email queue deleted queued_msg $id"
+ ns_log debug "email queue deleted queued_msg $id"
} on_error {
- ns_log Notice "email queue processing; transaction ABORTED!"
+ ns_log Warning "email queue processing; transaction ABORTED! err: $errmsg"
# Remove the offending message from the queue or it will probably
# trigger the same error next time.
catch { db_dml delete_from_queue "delete from incoming_email_queue where id = :id" }
global errorInfo errorCode
- ns_log Notice $errorInfo
+ ns_log Warning "email_handler_process_email_queue: delete_from_queue error $errorInfo"
}
}
db_release_unused_handles
@@ -86,7 +86,7 @@
if {!$email_scheduler_installed} {
set email_scheduler_installed 1
set interval [ad_parameter -package_id [email_handler_package_id] QueueSweepInterval email-handler 600]
- ns_log Notice "email-handler.tcl scheduling process_email_queue to run every $interval seconds."
+ ns_log Notice "email-handler-procs.tcl scheduling email_handler_process_email_queue to run every $interval seconds."
ad_schedule_proc -thread t $interval email_handler_process_email_queue
}
Index: openacs-4/packages/email-handler/tcl/email-test-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/email-handler/tcl/email-test-procs.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/email-handler/tcl/email-test-procs.tcl 20 Apr 2001 20:51:10 -0000 1.1
+++ openacs-4/packages/email-handler/tcl/email-test-procs.tcl 1 Nov 2003 08:45:38 -0000 1.2
@@ -10,5 +10,5 @@
db_dml "email_test" {insert into email_handler_test (from_header, subject, body)
values (:from_hdr, :subject_hdr, :msgbody)}
- ns_log Notice "email_handler_test from=$from_hdr subject=$subject_hdr"
+ ns_log debug "email_handler_test: from=$from_hdr subject=$subject_hdr"
}
Index: openacs-4/packages/forums/tcl/forum-reply-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/tcl/forum-reply-procs.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/forums/tcl/forum-reply-procs.tcl 25 Oct 2002 13:00:01 -0000 1.3
+++ openacs-4/packages/forums/tcl/forum-reply-procs.tcl 1 Nov 2003 08:45:38 -0000 1.4
@@ -41,7 +41,7 @@
ad_proc -public process_reply {
reply_id
} {
- ns_log Notice "FORUM-NOTIF: processing reply $reply_id"
+ ns_log debug "forum::notification::process_reply: processing reply $reply_id"
# Get the data
notification::reply::get -reply_id $reply_id -array reply
Index: openacs-4/packages/forums/tcl/forums-sc-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/forums/tcl/forums-sc-procs.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/forums/tcl/forums-sc-procs.tcl 1 Sep 2003 22:22:14 -0000 1.1
+++ openacs-4/packages/forums/tcl/forums-sc-procs.tcl 1 Nov 2003 08:45:38 -0000 1.2
@@ -35,7 +35,7 @@
forum::message::get -message_id $message_id -array message
if { ![empty_string_p $message(parent_id)] } {
- ns_log notice "forum::message::datasource was called with a message_id that has a parent - skipping: $message_id"
+ ns_log Notice "forum::message::datasource was called with a message_id that has a parent - skipping: $message_id"
set empty(object_id) $message_id
set empty(title) ""
set empty(content) ""
Index: openacs-4/packages/gatekeeper/tcl/gatekeeper-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/gatekeeper/tcl/gatekeeper-procs.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/gatekeeper/tcl/gatekeeper-procs.tcl 13 Sep 2002 10:44:00 -0000 1.3
+++ openacs-4/packages/gatekeeper/tcl/gatekeeper-procs.tcl 1 Nov 2003 08:45:38 -0000 1.4
@@ -205,7 +205,7 @@
ad_proc -private gatekeeper_query_foreign {url {timeout 30}} {
Query a foreign url.
} {
- ns_log "Notice" "Requesting foreign url: $url"
+ ns_log debug "Requesting foreign url: $url"
set input_headers [ad_conn headers]
set headers [ns_set copy $input_headers]
@@ -322,7 +322,7 @@
if { [catch { gatekeeper_query_foreign [gatekeeper_request_url_to_foreign_url $url]}] } {
global errorInfo
- ns_log "Error" "Error fetching $url:\n$errorInfo"
+ ns_log Error "gatekeeper_serve_request: error fetching $url:\n$errorInfo"
ad_return_error "Unable to retreive page." "Unable to retreive page."
}
}
Index: openacs-4/packages/general-comments/tcl/general-comments-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/tcl/general-comments-procs.tcl,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/general-comments/tcl/general-comments-procs.tcl 29 Sep 2003 17:45:48 -0000 1.10
+++ openacs-4/packages/general-comments/tcl/general-comments-procs.tcl 1 Nov 2003 08:45:38 -0000 1.11
@@ -108,7 +108,6 @@
} else {
set content_select [db_map content_select] ;# ", r.content"
}
- # ns_log notice "content_select: $content_select"
if { ![empty_string_p $context_id] } {
set context_clause "and o.context_id = :context_id"
@@ -251,7 +250,7 @@
return $package_url
} else {
# log an error message
- ns_log "Notice" "The General Comments package is not mounted."
+ ns_log Notice "general_comments_package_url_not_cached: the General Comments package is not mounted."
return ""
}
}
Index: openacs-4/packages/lars-blogger/tcl/entry-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/tcl/entry-procs.tcl,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/lars-blogger/tcl/entry-procs.tcl 16 Oct 2003 23:10:45 -0000 1.8
+++ openacs-4/packages/lars-blogger/tcl/entry-procs.tcl 1 Nov 2003 08:45:38 -0000 1.9
@@ -160,7 +160,7 @@
set excerpt [string range $entry(content) 0 [parameter::get -parameter TrackbackMaxExcerpt -default 200]]
set blog_name [lars_blog_name -package_id $entry(package_id)]
- ns_log notice "Trackback sending: url=$url title=$entry(title) excerpt=$excerpt content=$entry(content) blog_name=$blog_name"
+ ns_log debug "Trackback sending: url=$url title=$entry(title) excerpt=$excerpt content=$entry(content) blog_name=$blog_name"
trackback::auto_ping -url $url \
-title $entry(title) \
-excerpt $excerpt \
Index: openacs-4/packages/lars-blogger/tcl/weblogs-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/lars-blogger/tcl/weblogs-procs.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/lars-blogger/tcl/weblogs-procs.tcl 28 Aug 2003 09:41:55 -0000 1.4
+++ openacs-4/packages/lars-blogger/tcl/weblogs-procs.tcl 1 Nov 2003 08:45:38 -0000 1.5
@@ -41,7 +41,7 @@
set blog_url "[ad_url]$package_url"
- ns_log notice "lars_blog_weblogs_com_update_ping:"
+ ns_log debug "lars_blog_weblogs_com_update_ping:"
if [catch {
if {[incr depth] > 10} {
return -code error "rss_weblogUpdatesping: Recursive redirection: $location"
@@ -72,8 +72,8 @@
flush $wfd
close $wfd
- ns_log notice "lars_blog_weblogs_com_update_ping: pinging for blog $blog_title and url $blog_url"
- ns_log notice message: \"$message\"
+ ns_log debug "lars_blog_weblogs_com_update_ping: pinging for blog $blog_title and url $blog_url"
+ ns_log debug "message: \"$message\""
set headers $rpset
set response [ns_set name $headers]
@@ -109,7 +109,7 @@
ns_log warning "lars_blog_weblogs_com_update_ping error: $errmsg"
return -1
} else {
- ns_log notice "lars_blog_weblogs_com_update_ping: $page"
+ ns_log debug "lars_blog_weblogs_com_update_ping: $page"
return 1
}
}
Index: openacs-4/packages/monitoring/tcl/monitoring-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/monitoring/tcl/monitoring-init.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/monitoring/tcl/monitoring-init.tcl 19 Aug 2002 23:10:28 -0000 1.2
+++ openacs-4/packages/monitoring/tcl/monitoring-init.tcl 1 Nov 2003 08:45:38 -0000 1.3
@@ -10,7 +10,7 @@
# If this is run too often, it occasionally runs into memory
# allocation trouble when trying to exec top...
set top_frequency [ad_parameter -package_id [monitoring_pkg_id] TopFrequency monitoring 0]
-ns_log Notice "top_frequency is $top_frequency"
+ns_log Debug "monitoring: top_frequency is $top_frequency"
if { $top_frequency > 0 } {
set top_frequency_in_seconds [expr 60 * $top_frequency]
Index: openacs-4/packages/monitoring/tcl/monitoring-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/monitoring/tcl/monitoring-procs.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/monitoring/tcl/monitoring-procs.tcl 17 Sep 2002 21:57:38 -0000 1.5
+++ openacs-4/packages/monitoring/tcl/monitoring-procs.tcl 1 Nov 2003 08:45:38 -0000 1.6
@@ -94,13 +94,11 @@
#compress multiple spaces
regsub -all {[ ]+} [string trim $line] " " line
set proc_list [split $line]
- ns_log Notice "line=$line"
#skip blank lines
if { [llength $proc_list] < 2 } { continue }
if { [llength $proc_list] < 11 } {
- ns_log Notice "skipping top process line:
- element list shorter than variable list."
+ ns_log Debug "skipping top process line: $line\nelement list shorter than variable list."
continue
}
@@ -137,7 +135,6 @@
continue
} elseif { [regexp -nocase {(.*PID.USER.*)} $line match top_header] } {
- ns_log notice "vk1"
## this is the start of proc info lines
incr procflag
@@ -248,7 +245,7 @@
# Are we even doing this?
if {[ad_parameter -package_id [monitoring_pkg_id] AutoAnalyzeP monitoring 0]==0} {
- ns_log notice "ad_monitoring_analyze_tables: Not Analyzing Tables"
+ ns_log debug "ad_monitoring_analyze_tables: Not Analyzing Tables"
return
}
@@ -297,7 +294,7 @@
# for some reason this failed.. probably cause the table doesn't exists
# anymore
- ns_log notice "Analyzing $table_name.."
+ ns_log debug "Analyzing $table_name.."
if {[catch {db_dml table_analyze $execstr} errmsg]} {
# Look up the table in user_tables
if { ![db_table_exists $table_name] } {
Index: openacs-4/packages/monitoring/tcl/watchdog-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/monitoring/tcl/watchdog-init.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/monitoring/tcl/watchdog-init.tcl 19 Aug 2002 23:10:28 -0000 1.2
+++ openacs-4/packages/monitoring/tcl/watchdog-init.tcl 1 Nov 2003 08:45:38 -0000 1.3
@@ -27,7 +27,7 @@
ad_schedule_proc -once t 0 {wd_mail_errors}
ad_schedule_proc [expr 60 * $check_frequency] {wd_mail_errors}
- ns_log Notice "Scheduled watchdog to run every '$check_frequency' minutes."
+ ns_log Notice "Watchdog: wd_mail_errors scheduled to run every $check_frequency minutes."
}
nsv_set . wd_installed_p 1
}
Index: openacs-4/packages/monitoring/tcl/watchdog-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/monitoring/tcl/watchdog-procs.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/monitoring/tcl/watchdog-procs.tcl 19 Aug 2002 23:10:28 -0000 1.2
+++ openacs-4/packages/monitoring/tcl/watchdog-procs.tcl 1 Nov 2003 08:45:38 -0000 1.3
@@ -46,7 +46,7 @@
set command [ad_parameter -package_id [monitoring_pkg_id] WatchDogParser monitoring $default_command]
if { ![file exists $command] } {
- ns_log Notice "Watchdog($proc_name): Can't find WatchDogParser: $command doesn't exist"
+ ns_log Error "Watchdog($proc_name): Can't find WatchDogParser: $command doesn't exist"
} else {
# This has been changed from the previous version's concat
# because it did not work. Some quick testing
@@ -94,11 +94,11 @@
set proc_name {wd_mail_errors}
set num_minutes [wd_email_frequency]
- ns_log Notice "Watchdog($proc_name): Looking for errors..."
+ ns_log Debug "Watchdog($proc_name): Looking for errors..."
set errors [wd_errors -num_minutes $num_minutes]
if {[string length $errors] > 50} {
- ns_log Notice "Watchdog($proc_name): Errors found."
+ ns_log Debug "Watchdog($proc_name): Errors found."
# Let's put the url to this server in the email message
# to make it crystal clear which server is having problems
set message "
Index: openacs-4/packages/news-aggregator/tcl/news-aggregator-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/tcl/news-aggregator-procs.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/news-aggregator/tcl/news-aggregator-procs.tcl 28 Aug 2003 09:41:57 -0000 1.2
+++ openacs-4/packages/news-aggregator/tcl/news-aggregator-procs.tcl 1 Nov 2003 08:45:38 -0000 1.3
@@ -13,7 +13,7 @@
if {[incr depth] > 10} {
return -code error "util_httpget: Recursive redirection: $url"
}
- ns_log "Notice" "Getting {$url} {$headers} {$timeout} {$depth}"
+ ns_log Debug "Getting {$url} {$headers} {$timeout} {$depth}"
set http [ns_httpopen GET $url $headers $timeout]
set rfd [lindex $http 0]
close [lindex $http 1]
@@ -188,7 +188,7 @@
}
} err] } {
- ns_log "Notice" "Error parsing RSS feed: $err"
+ ns_log Notice "Error parsing RSS feed: $err"
return 0
} else {
return $result
@@ -299,7 +299,7 @@
ad_proc -public na_update_sources { } {
Update sources by a one hour interval.
} {
- ns_log "Notice" "Updating na_sources"
+ ns_log Debug "na_update_sources: updating news-aggregator sources"
db_foreach sources { *SQL* } {
na_update_source $owner_id $source_id $feed_url $last_modified
Index: openacs-4/packages/notifications/tcl/delivery-method-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/tcl/delivery-method-procs.tcl,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/notifications/tcl/delivery-method-procs.tcl 16 Oct 2003 14:06:46 -0000 1.9
+++ openacs-4/packages/notifications/tcl/delivery-method-procs.tcl 1 Nov 2003 08:45:39 -0000 1.10
@@ -40,7 +40,7 @@
} {
#need to check if its ok to notify this user in this way. For now just checks if they are an approved user.
if { ![notification::security::can_notify_user -user_id $to_user_id -delivery_method_id $delivery_method_id] } {
- ns_log debug "Blocked notification to $to_user_id subject:$subject"
+ ns_log debug "notification::delivery::send: Blocked notification to $to_user_id subject:$subject"
return "Blocked"
}
Index: openacs-4/packages/notifications/tcl/notification-email-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/tcl/notification-email-procs.tcl,v
diff -u -r1.14 -r1.15
--- openacs-4/packages/notifications/tcl/notification-email-procs.tcl 22 Sep 2003 19:25:18 -0000 1.14
+++ openacs-4/packages/notifications/tcl/notification-email-procs.tcl 1 Nov 2003 08:45:39 -0000 1.15
@@ -144,15 +144,15 @@
if {[catch {
set messages [glob "$queue_dir/new/*"]
} errmsg]} {
- ns_log Notice "queue dir = $queue_dir/new/*, no messages"
+ ns_log Debug "load_qmail_mail_queue: queue dir = $queue_dir/new/*, no messages"
return [list]
}
set list_of_reply_ids [list]
set new_messages_p 0
foreach msg $messages {
- ns_log Notice "opening file: $msg"
+ ns_log Debug "load_qmail_mail_queue: opening file: $msg"
if [catch {set f [open $msg r]}] {
continue
}
@@ -215,9 +215,9 @@
# a break above just exited the while loop; now we need to skip
# the rest of the foreach as well
if { $is_auto_reply_p } {
- ns_log Notice "NOTIF-INCOMING-EMAIL: message is from an auto-responder, skipping"
+ ns_log Debug "load_qmail_mail_queue: message is from an auto-responder, skipping"
if {[catch {ns_unlink $msg} errmsg]} {
- ns_log Notice "NOTIF-INCOMING-EMAIL: couldn't remove message $msg: $errmsg"
+ ns_log Warning "load_qmail_mail_queue: couldn't remove message $msg: $errmsg"
}
continue
}
@@ -243,9 +243,9 @@
# We don't accept empty users for now
if {[empty_string_p $from_user]} {
- ns_log Notice "NOTIF-INCOMING-EMAIL: no user $from"
+ ns_log Notice "load_qmail_mail_queue: no user $from"
if {[catch {ns_unlink $msg} errmsg]} {
- ns_log Notice "NOTIF-INCOMING-EMAIL: couldn't remove message $msg: $errmsg"
+ ns_log Warning "load_qmail_mail_queue: couldn't remove message $msg: $errmsg"
}
continue
}
@@ -254,9 +254,9 @@
# We don't accept a bad incoming email address
if {[empty_string_p $to_stuff]} {
- ns_log Notice "NOTIF-INCOMING-EMAIL: bad to address $to"
+ ns_log Notice "load_qmail_mail_queue: bad to address $to"
if {[catch {ns_unlink $msg} errmsg]} {
- ns_log Notice "NOTIF-INCOMING-EMAIL: couldn't remove message $msg: $errmsg"
+ ns_log Warning "load_qmail_mail_queue: couldn't remove message $msg: $errmsg"
}
continue
}
@@ -276,7 +276,7 @@
lappend list_of_reply_ids $reply_id
} on_error {
- ns_log Error "Error inserting incoming email into the queue"
+ ns_log Error "load_qmail_mail_queue: error inserting incoming email into the queue: $errmsg"
}
}
@@ -286,7 +286,7 @@
ad_proc -public scan_replies {} {
scan for replies
} {
- ns_log Notice "NOTIF-EMAIL: about to load qmail queue"
+ ns_log Notice "notification::email::scan_replies: about to load qmail queue"
return [load_qmail_mail_queue -queue_dir [qmail_mail_queue_dir]]
}
Index: openacs-4/packages/notifications/tcl/reply-sweep-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/notifications/tcl/reply-sweep-procs.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/notifications/tcl/reply-sweep-procs.tcl 3 Oct 2003 11:12:27 -0000 1.5
+++ openacs-4/packages/notifications/tcl/reply-sweep-procs.tcl 1 Nov 2003 08:45:39 -0000 1.6
@@ -10,45 +10,44 @@
}
-namespace eval notification::reply::sweep {
-
- ad_proc -public scan_all_replies {} {
- Go through all the delivery methods and scan replies for that delivery method.
- } {
- ns_log Notice "NOTIF- scan_all_replies starting"
+namespace eval notification::reply::sweep {}
- # Load up the delivery methods
- set delivery_method_ids [db_list select_deliv_methods {}]
- # Loop and scan replies on each one
- foreach delivery_method_id $delivery_method_ids {
- ns_log Notice "NOTIF- scan_all_replies deliv method $delivery_method_id"
- notification::delivery::scan_replies -delivery_method_id $delivery_method_id
- }
+ad_proc -public notification::reply::sweep::scan_all_replies {} {
+ Go through all the delivery methods and scan replies for that delivery method.
+} {
+ ns_log Debug "notification::reply::sweep::scan_all_replies starting"
+
+ # Load up the delivery methods
+ set delivery_method_ids [db_list select_deliv_methods {}]
+
+ # Loop and scan replies on each one
+ foreach delivery_method_id $delivery_method_ids {
+ ns_log Debug "scan_all_replies deliv method $delivery_method_id"
+ notification::delivery::scan_replies -delivery_method_id $delivery_method_id
}
+}
- ad_proc -public process_all_replies {} {
- Go through the replies in the DB and dispatch correctly to the right processor.
- } {
- ns_log Notice "NOTIF- process_all_replies starting"
+ad_proc -public notification::reply::sweep::process_all_replies {} {
+ Go through the replies in the DB and dispatch correctly to the right processor.
+} {
+ ns_log Debug "notification::reply::sweep::process_all_replies starting"
- # Load up the replies
- set replies [db_list_of_lists select_replies {}]
+ # Load up the replies
+ set replies [db_list_of_lists select_replies {}]
- # Loop through and transactionally process each one
- foreach reply $replies {
- set reply_id [lindex $reply 0]
- set type_id [lindex $reply 1]
+ # Loop through and transactionally process each one
+ foreach reply $replies {
+ set reply_id [lindex $reply 0]
+ set type_id [lindex $reply 1]
- ns_log Notice "NOTIF- one reply $reply_id of type $type_id"
+ ns_log Debug "process_all_replies: one reply $reply_id of type $type_id"
- if { [ catch {
- notification::type::process_reply -type_id $type_id -reply_id $reply_id
- notification::reply::delete -reply_id $reply_id
- } err ] } {
- ns_log Error "NOTIF- notification::reply::sweep bombed on reply_id $reply_id - $err"
- }
+ if { [ catch {
+ notification::type::process_reply -type_id $type_id -reply_id $reply_id
+ notification::reply::delete -reply_id $reply_id
+ } err ] } {
+ ns_log Error "notification::reply::sweep::process_all_replies: bombed on reply_id $reply_id:\n$err"
}
}
-
}
Index: openacs-4/packages/openfts-driver/tcl/openfts-driver-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/openfts-driver/tcl/openfts-driver-init.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/openfts-driver/tcl/openfts-driver-init.tcl 30 Nov 2002 17:41:28 -0000 1.2
+++ openacs-4/packages/openfts-driver/tcl/openfts-driver-init.tcl 1 Nov 2003 08:45:39 -0000 1.3
@@ -9,7 +9,7 @@
if { [llength $files] == 0 } {
error "Unable to locate $openfts_tcl_src_path."
}
- ns_log Notice "sourcing files from ${openfts_tcl_src_path}"
+ ns_log Debug "search_engine_driver: sourcing files from ${openfts_tcl_src_path}"
foreach file [lsort $files] {
source $file
}
Index: openacs-4/packages/photo-album/tcl/photo-album-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/tcl/photo-album-procs.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/photo-album/tcl/photo-album-procs.tcl 22 Sep 2003 12:13:44 -0000 1.5
+++ openacs-4/packages/photo-album/tcl/photo-album-procs.tcl 1 Nov 2003 08:45:39 -0000 1.6
@@ -218,25 +218,23 @@
mkdir because it will make all the directories leading up to dirname
borrowed from 3.4 download code
} {
- ns_log Debug "Checking dir, pa_assert_dir"
if { $check_base_path_p } {
set dir_path "[acs_root_dir]/[ad_parameter PhotoDir]/$dir_path"
set needed_dir ""
} else {
set needed_dir "[acs_root_dir]/[ad_parameter PhotoDir]"
}
- ns_log Debug "dir_path: $dir_path \n needed_dir: $needed_dir"
set dir_list [split $dir_path /]
foreach dir $dir_list {
- ns_log Debug "Checking: $dir"
+ ns_log Debug "pa_assert_dir: Checking: $dir"
if [empty_string_p $dir] {
continue
}
append needed_dir "/$dir"
if ![file exists $needed_dir] {
- ns_log Debug "Making: $dir"
+ ns_log Debug "pa_assert_dir: ns_mkdir $dir"
ns_mkdir $needed_dir
}
}
@@ -371,7 +369,7 @@
ns_log debug "pa_make_new_image: Start convert, making $new_image geometry $geometry"
exec convert -geometry $geometry -interlace None -sharpen 1x2 $base_image $new_image
if {[catch {exec jhead -dt $new_image} errmsg]} {
- ns_log warning "pa_make_new_image: jhead failed with error - $errmsg"
+ ns_log Warning "pa_make_new_image: jhead failed with error - $errmsg"
}
ns_log debug "pa_make_new_image: Done convert for $new_image"
}
@@ -624,8 +622,8 @@
} {
set tmp_dir [file join [file dirname $tmpfile] [ns_mktemp "$dest_dir_base-XXXXXX"]]
if [catch { ns_mkdir $tmp_dir } errMsg ] {
- ns_log Notice "expand_archive: Error creating directory $tmp_dir: $errMsg"
- return -code error "expand_archive: Error creating directory $tmp_dir: $errMsg"
+ ns_log Warning "pa_expand_archive: Error creating directory $tmp_dir: $errMsg"
+ return -code error "pa_expand_archive: Error creating directory $tmp_dir: $errMsg"
}
set upload_file [string trim [string tolower $upload_file]]
@@ -668,8 +666,8 @@
if {$errp} {
file delete -force $tmp_dir
- ns_log Notice "expand_archive: extract type $type failed $errMsg"
- return -code error "expand_archive: extract type $type failed $errMsg"
+ ns_log Warning "pa_expand_archive: extract type $type failed $errMsg"
+ return -code error "pa_expand_archive: extract type $type failed $errMsg"
}
return $tmp_dir
}
@@ -804,7 +802,7 @@
# Create the tmp dir if needed
set tmp_path [ad_parameter FullTempPhotoDir]
if ![file exists $tmp_path] {
- ns_log Debug "Making: tmp_photo_album_dir_path $tmp_path"
+ ns_log Debug "pa_load_images: Making: tmp_photo_album_dir_path $tmp_path"
ns_mkdir $tmp_path
}
@@ -828,7 +826,7 @@
}
if {[catch {set base_info [pa_file_info $image_file]} errMsg]} {
- ns_log Warning "Error parsing file data $image_file Error: $errMsg"
+ ns_log Warning "pa_load_images: error parsing file data $image_file Error: $errMsg"
continue
}
@@ -841,7 +839,7 @@
if {![empty_string_p $base_colors] && $base_colors < 257} {
# convert it to a png
if {[catch {exec convert $image_file PNG:$new_image.png} errMsg]} {
- ns_log Notice "Failed convert to PNG for $image_file (magicktype $base_type)"
+ ns_log Warning "pa_load_images: Failed convert to PNG for $image_file (magicktype $base_type)"
}
if { $remove } {
file delete $image_file
@@ -851,15 +849,15 @@
} elseif {![empty_string_p $base_colors] && $base_colors > 256} {
# convert it to a jpg
if {[catch {exec convert $image_file JPG:$new_image.jpg} errMsg]} {
- ns_log Notice "Failed convert to JPG for $image_file (magicktype $base_type)"
+ ns_log Warning "pa_load_images: failed convert to JPG for $image_file (magicktype $base_type)"
}
if { $remove } {
file delete $image_file
}
set image_file $new_image.jpg
set remove 1
} else {
- ns_log Notice "Is it even an image: $image_file $base_type"
+ ns_log Warning "pa_load_images: is this file even an image: $image_file $base_type"
}
# get info again
@@ -875,7 +873,7 @@
set BaseExt [string tolower $base_type]
if [empty_string_p $base_mime] {
- ns_log Notice "Photo-Album: Invalid image type $image_file $type even after convert!"
+ ns_log Debug "pa_load_images: invalid image type $image_file $type even after convert!"
continue
}
@@ -1008,7 +1006,7 @@
# try to get the data.
if {[catch {set results [exec jhead $file]} errmsg]} {
- ns_log warning "pa_get_exif_data: jhead failed with error - $errmsg"
+ ns_log Warning "pa_get_exif_data: jhead failed with error - $errmsg"
return {}
} elseif {[string match {Not JPEG:*} $results]} {
return {}
@@ -1114,9 +1112,9 @@
# get a list of files to handle sorted by size...
db_foreach get_image_files {} {
- ns_log Notice "pa_rotate $id $rotation [cr_fs_path] $filename $image_id $width $height"
+ ns_log Debug "pa_rotate: rotate $id by $rotation [cr_fs_path] $filename $image_id $width $height"
if {[catch {exec convert -rotate $rotation [cr_fs_path]$filename [cr_fs_path]${filename}.new } errMsg]} {
- ns_log Notice "Failed rotation of image $image_id -- $errMsg"
+ ns_log Warning "pa_rotate: failed rotation of image $image_id -- $errMsg"
}
lappend flop $image_id
lappend files [cr_fs_path]$filename
Index: openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl 9 Mar 2002 02:00:02 -0000 1.2
+++ openacs-4/packages/robot-detection/tcl/robot-detection-init.tcl 1 Nov 2003 08:45:39 -0000 1.3
@@ -22,7 +22,7 @@
# Install ad_robot_filter for all specified patterns
foreach filter_pattern $filter_pattern_list {
- ns_log Notice "Installing robot filter for $filter_pattern\n"
+ ns_log Debug "Installing robot filter for $filter_pattern"
set filter_pattern [ad_urlencode [string trim $filter_pattern]]
ad_register_filter postauth GET $filter_pattern ad_robot_filter
}
Index: openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl 28 Aug 2003 09:41:58 -0000 1.3
+++ openacs-4/packages/robot-detection/tcl/robot-detection-procs.tcl 1 Nov 2003 08:45:39 -0000 1.4
@@ -19,7 +19,7 @@
} {
set web_robots_db_url [ad_parameter WebRobotsDB robot-detection "http://info.webcrawler.com/mak/projects/robots/active/all.txt"]
if {[catch {set robot_db_text_file [util_httpget $web_robots_db_url]} errmsg]} {
- ns_log Error "ad_replicate_web_robots_db couldn't get the robots file from the web\n"
+ ns_log Warning "ad_replicate_web_robots_db couldn't get the robots file from the web"
global errorInfo
error $errmsg $errorInfo
}
@@ -75,7 +75,7 @@
}
}
} on_error {
- ns_log Error "ad_replicate_web_robots_db had problem with database operations\n"
+ ns_log Error "ad_replicate_web_robots_db had problem with database operations:\n$errmsg"
return -code error $errmsg
}
return [db_string num_of_robots "select count(*) from robots"]
@@ -112,7 +112,7 @@
# redirects to itself.)
if { [exists_and_not_null robot_redirect_url] && [string first $robot_redirect_url [ad_conn url]] != 0 } {
# requested URL does not start with robot redirect URL (usually a dir)
- ns_log Notice "Robot being bounced by ad_robot_filter: User-Agent = $useragent"
+ ns_log Debug "Robot being bounced by ad_robot_filter: User-Agent = $useragent"
ad_returnredirect $robot_redirect_url
return "filter_return"
} else {
@@ -130,17 +130,17 @@
db_transaction {
set robot_count [db_string robot_count {select count(*) from robots} ]
if {$robot_count == 0} {
- ns_log Notice "Replicating Web Robots DB, because robots table is empty"
+ ns_log Debug "Replicating Web Robots DB, because robots table is empty"
ad_replicate_web_robots_db
} else {
set refresh_interval [ad_parameter RefreshIntervalDays robot-detection 30]
set days_old [db_string days_since_last_update {
select trunc(sysdate - max(nvl(modified_date, insertion_date))) from robots} ]
if {$days_old >= $refresh_interval} {
- ns_log Notice "Replicating Web Robots DB, because data in robots table has expired"
+ ns_log Debug "Replicating Web Robots DB, because data in robots table has expired"
ad_replicate_web_robots_db
} else {
- ns_log Notice "Not replicating Web Robots DB at this time, because data in the robots table has not expired"
+ ns_log Debug "Not replicating Web Robots DB at this time, because data in the robots table has not expired"
}
}
} on_error {
Index: openacs-4/packages/rss-support/tcl/rss-generation-service-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/rss-support/tcl/rss-generation-service-procs.tcl,v
diff -u -r1.13 -r1.14
--- openacs-4/packages/rss-support/tcl/rss-generation-service-procs.tcl 17 May 2003 11:22:12 -0000 1.13
+++ openacs-4/packages/rss-support/tcl/rss-generation-service-procs.tcl 1 Nov 2003 08:45:39 -0000 1.14
@@ -98,13 +98,13 @@
set contract_id [db_string get_contract_id {}]
db_foreach get_unbound_impls {} {
- ns_log Notice "rss_gen_bind: binding impl $impl_id for contract $contract_id"
+ ns_log Debug "rss_gen_bind: binding impl $impl_id for contract $contract_id"
# Don't ask me why, but bind variables don't appear to work
# in this nested db operation.
if [catch {
db_exec_plsql bind_impl {}
} errMsg] {
- ns_log Notice "rss_gen_bind: error binding impl $impl_id for contract $contract_id: $errMsg"
+ ns_log Warning "rss_gen_bind: error binding impl $impl_id for contract $contract_id: $errMsg"
}
}
}
Index: openacs-4/packages/static-pages/tcl/static-pages-init.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-pages/tcl/static-pages-init.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/static-pages/tcl/static-pages-init.tcl 16 Jan 2003 14:01:59 -0000 1.3
+++ openacs-4/packages/static-pages/tcl/static-pages-init.tcl 1 Nov 2003 08:45:39 -0000 1.4
@@ -1,3 +1,5 @@
+ns_log Notice "Loading packages/tcl/static-pages-init.tcl"
+
# setup the STATIC_PAGES location for CR_LOCATIONS so that all paths
# stored in the db are relative to the OpenACS installation dir
@@ -37,4 +39,4 @@
#ad_schedule_proc -thread t -schedule_proc ns_schedule_daily [list 04 00] sp_sync_cr_with_filesystem_scheduled
-ns_log notice "static-pages-init.tcl loaded"
+
Index: openacs-4/packages/static-pages/tcl/static-pages-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/static-pages/tcl/static-pages-procs.tcl,v
diff -u -r1.13 -r1.14
--- openacs-4/packages/static-pages/tcl/static-pages-procs.tcl 17 May 2003 12:26:29 -0000 1.13
+++ openacs-4/packages/static-pages/tcl/static-pages-procs.tcl 1 Nov 2003 08:45:39 -0000 1.14
@@ -25,7 +25,7 @@
@creation-date 2002/09/12
} {
set proc_name {sp_sync_cr_with_filesystem_scheduled}
- ns_log Notice "$proc_name: Starting."
+ ns_log Notice "$proc_name: Starting"
# sp_sync_cr_with_filesystem callbacks to fill file_items with info:
@@ -53,7 +53,7 @@
set root_folder_id [sp_root_folder_id $package_id]
set fs_root "[acs_root_dir][ad_parameter -package_id $package_id {fs_root}]"
- ns_log Notice "$proc_name: About to scan the filesystem for: package_id '$package_id', instance_name '$instance_name', fs_root '$fs_root':"
+ ns_log Debug "$proc_name: About to scan the filesystem for: package_id '$package_id', instance_name '$instance_name', fs_root '$fs_root':"
# If our call to sp_sync_cr_with_filesystem fails for some
# reason, want to continue on trying the other package
@@ -72,14 +72,14 @@
global errorInfo
ns_log Error "$proc_name: For package_id: '$package_id', $sync_proc failed with error:\n${errorInfo}"
} else {
- ns_log Notice "$proc_name: For package_id: '$package_id': $result"
+ ns_log Debug "$proc_name: For package_id: '$package_id': $result"
}
} if_no_rows {
ns_log Warning "$proc_name: NO package ids found for package key: '$package_key'."
}
- ns_log Notice "$proc_name: Done."
+ ns_log Debug "$proc_name: Done."
}
@@ -643,12 +643,12 @@
ad_proc -private sp_get_relative_file_path { file } {
Takes a full file path and returns the path relative to the
- static-page storage directory, usualyl /web/openacs/www/
+ static-page storage directory, usually /web/openacs/www/
} {
set relative_path [string range $file [string length [cr_fs_path STATIC_PAGES]] end]
- ns_log notice "**[cr_fs_path STATIC_PAGES]**"
- ns_log notice "relative path:$relative_path"
+ ns_log debug "**[cr_fs_path STATIC_PAGES]**"
+ ns_log debug "relative path:$relative_path"
return $relative_path
}
@@ -858,7 +858,7 @@
rp_register_extension_handler $extension $handler_proc
rp_register_extension_handler [string toupper $extension] $handler_proc
} else {
- ns_log Notice "$proc_name: NOT registering any proc to handle files with extension '$extension'."
+ ns_log Warning "$proc_name: NOT registering any proc to handle files with extension '$extension'."
# TODO: Add a PDF or other extension handler? Necessary
# only if you want to be able to make comments on non-HTML
Index: openacs-4/packages/trackback/tcl/trackback-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/trackback/tcl/trackback-procs.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/trackback/tcl/trackback-procs.tcl 1 Oct 2003 19:13:04 -0000 1.2
+++ openacs-4/packages/trackback/tcl/trackback-procs.tcl 1 Nov 2003 08:45:39 -0000 1.3
@@ -34,8 +34,8 @@
-is_live $is_live \
-title $title \
-context_id $object_id]
- ns_log notice "Trackback tb_url=$tb_url blog_name=$blog_name"
- db_dml add_trackback ""
+ ns_log Debug "Trackback tb_url=$tb_url blog_name=$blog_name"
+ db_dml add_trackback ""
return $comment_id
}
@@ -77,7 +77,7 @@
# hopefully this will grab anthing starting with http://
# maybe we need to check other stuff?
set links_list [regexp -all -inline {http://[^\"^\s]*} $content]
- ns_log debug "trackback: List of links $links_list"
+ ns_log Debug "trackback: List of links $links_list"
# get trackback url
foreach link $links_list {
set result_list [ad_httpget -url $link]
@@ -171,6 +171,7 @@
ns_log debug "trackback: full url = ${ping_url}&${form_vars}"
# old style GET
set result [ns_httpget ${ping_url}&${form_vars} 60]
+ ns_log debug "trackback: trackback returned: $result"
} else {
#must be POST
@@ -186,9 +187,8 @@
}
if {[catch {[ns_httppost $ping_url "" $query_set]} result]} {
- ns_log notice "trackback: trackback returned: $result"
+ ns_log debug "trackback: trackback returned: $result"
}
}
- ns_log debug "trackback: trackback returned: $result"
return $result
}
\ No newline at end of file
Index: openacs-4/packages/workflow/tcl/workflow-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/tcl/workflow-procs.tcl,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/workflow/tcl/workflow-procs.tcl 28 Oct 2003 13:39:03 -0000 1.10
+++ openacs-4/packages/workflow/tcl/workflow-procs.tcl 1 Nov 2003 08:45:39 -0000 1.11
@@ -72,7 +72,7 @@
# Callbacks
foreach callback_name $callbacks {
- ns_log Notice "callback_name = $callback_name"
+ ns_log Debug "callback_name = $callback_name"
workflow::callback_insert \
-workflow_id $workflow_id \
-name $callback_name