[Rt-commit] rt branch, 4.2/deprecate-notice-logo-size, created. rt-4.2.5-164-g8375b91
Wallace Reis
wreis at bestpractical.com
Thu Jul 10 10:51:51 EDT 2014
The branch, 4.2/deprecate-notice-logo-size has been created
at 8375b91927226862d19851c5d6aee9cb8d1c7d8f (commit)
- Log -----------------------------------------------------------------
commit fd34dfb2588be50064a3d81465c963db810f1054
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Jul 9 15:04:36 2014 -0400
Allow ->Deprecated to take a loglevel
diff --git a/lib/RT.pm b/lib/RT.pm
index 6d3d5d2..238caa4 100644
--- a/lib/RT.pm
+++ b/lib/RT.pm
@@ -917,6 +917,7 @@ sub Deprecated {
Instead => undef,
Message => undef,
Stack => 1,
+ LogLevel => "warn",
@_,
);
@@ -953,7 +954,9 @@ sub Deprecated {
if $args{Object};
$msg .= " Call stack:\n$stack" if $args{Stack};
- RT->Logger->warn($msg);
+
+ my $loglevel = $args{LogLevel};
+ RT->Logger->$loglevel($msg);
}
=head1 BUGS
commit 8375b91927226862d19851c5d6aee9cb8d1c7d8f
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Jul 9 15:05:05 2014 -0400
Note that LogoImageHeight and LogoImageWidth were pointless and removed
diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 7c75d0e..3f45db7 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -970,6 +970,18 @@ our %META;
WebExternalGecos => { Deprecated => { Instead => 'WebRemoteUserGecos', Remove => '4.4' }},
WebExternalAuto => { Deprecated => { Instead => 'WebRemoteUserAutocreate', Remove => '4.4' }},
AutoCreate => { Deprecated => { Instead => 'UserAutocreateDefaultsOnLogin', Remove => '4.4' }},
+ LogoImageHeight => {
+ Deprecated => {
+ LogLevel => "info",
+ Message => "The LogoImageHeight option did not affect display; the option has been removed.",
+ },
+ },
+ LogoImageWidth => {
+ Deprecated => {
+ LogLevel => "info",
+ Message => "The LogoImageWidth option did not affect display; the option has been removed.",
+ },
+ },
);
my %OPTIONS = ();
my @LOADED_CONFIGS = ();
-----------------------------------------------------------------------
More information about the rt-commit
mailing list