[Rt-commit] rt branch, 4.0/error-ignored-in-upgrade-fix, updated. rt-4.0.0-316-g3fd9daf

Alex Vandiver alexmv at bestpractical.com
Wed May 18 15:17:41 EDT 2011


The branch, 4.0/error-ignored-in-upgrade-fix has been updated
       via  3fd9daff84e53efeef6a4b4f8a1af9080ab59a5b (commit)
      from  3c7a1ada1848ef148f21127795b8b1c8d28486ca (commit)

Summary of changes:
 sbin/rt-setup-database.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 3fd9daff84e53efeef6a4b4f8a1af9080ab59a5b
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed May 18 15:17:38 2011 -0400

    During database maintenance, output warnings to STDERR

diff --git a/sbin/rt-setup-database.in b/sbin/rt-setup-database.in
index ac30f01..f7ef0a0 100755
--- a/sbin/rt-setup-database.in
+++ b/sbin/rt-setup-database.in
@@ -102,6 +102,11 @@ require RT;
 RT->LoadConfig();
 RT->InitClasses();
 
+# Force warnings to be output to STDERR if we're not already logging
+# them at a higher level
+RT->Config->Set( LogToScreen => 'warning')
+    unless RT->Config->Get( 'LogToScreen' ) =~ /^(debug|info|notice)$/;
+
 # get customized root password
 my $root_password;
 if ( $args{'root-password-file'} ) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list