[interchange-cvs] interchange - heins modified lib/Vend/Util.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Wed Apr 5 11:31:38 EDT 2006
User: heins
Date: 2006-04-05 15:31:38 GMT
Modified: lib/Vend Util.pm
Log:
* Allow limiting of size of logData error message.
Limit logdata_error_length 80
Revision Changes Path
2.94 +7 -2 interchange/lib/Vend/Util.pm
rev 2.94, prev_rev 2.93
Index: Util.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Util.pm,v
retrieving revision 2.93
retrieving revision 2.94
diff -u -r2.93 -r2.94
--- Util.pm 30 Mar 2006 15:51:49 -0000 2.93
+++ Util.pm 5 Apr 2006 15:31:38 -0000 2.94
@@ -1,6 +1,6 @@
# Vend::Util - Interchange utility functions
#
-# $Id: Util.pm,v 2.93 2006/03/30 15:51:49 racke Exp $
+# $Id: Util.pm,v 2.94 2006/04/05 15:31:38 mheins Exp $
#
# Copyright (C) 2002-2005 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -88,7 +88,7 @@
use Vend::File;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK);
-$VERSION = substr(q$Revision: 2.93 $, 10);
+$VERSION = substr(q$Revision: 2.94 $, 10);
my $Eval_routine;
my $Eval_routine_file;
@@ -750,6 +750,11 @@
close(MVLOGDATA) or die "close\n";
};
if ($@) {
+
+ if($::Limit->{logdata_error_length} > 0) {
+ $msg = substr($msg, 0, $::Limit->{logdata_error_length});
+ }
+
logError ("Could not %s log file '%s': %s\nto log this data:\n%s",
$@,
$file,
More information about the interchange-cvs
mailing list