- Timestamp:
- 10/08/08 09:38:22 (3 months ago)
- Location:
- trunk/client/ebox
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/EBox/Logs.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/ebox/ChangeLog
r11419 r11483 1 0.12.3 2 + Bug fix: use the new API in purge method. Now purging logs is working 3 again. 1 4 0.12.2 2 5 + Increase random string length used to generate the cookie to -
trunk/client/ebox/src/EBox/Logs.pm
r11415 r11483 837 837 # get the threshold date for each domain 838 838 foreach my $row_r ( @{ $self->configureLogModel->rows() } ) { 839 my $valuesHash = $row_r->{plainValueHash}; 840 my $lifeTime = $valuesHash->{'lifeTime'}; 839 my $lifeTime = $row_r->valueByName('lifeTime'); 841 840 842 841 # if lifeTime == 0, it should never expire … … 845 844 846 845 my $threshold = $self->_thresholdDate($lifeTime); 847 $thresholdByDomain{$ valuesHash->{'domain'}} = $threshold;846 $thresholdByDomain{$row_r->valueByName('domain')} = $threshold; 848 847 } 849 848 … … 873 872 my ($self, $table, $timeCol, $thresholdDate) = @_; 874 873 875 my $sqlStatement = "DELETE FROM $table WHERE '$timeCol'< '$thresholdDate'";874 my $sqlStatement = "DELETE FROM $table WHERE $timeCol < '$thresholdDate'"; 876 875 my $dbengine = EBox::DBEngineFactory::DBEngine(); 877 876 $dbengine->query($sqlStatement);
