Permalink
Browse files

modify some messages

make the output a bit clearer
  • Loading branch information...
1 parent 4362abc commit 6fd89c557d1a7e4060d6e5bc23aec823820dec3b @afresh1 committed Aug 24, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 rt-ticket-importer
View
@@ -119,10 +119,12 @@ sub _ConvertItem {
die "Unknown type [$type]!" unless $T{$type};
my $old_id = $item->{id};
+ warn "Converting $type #$old_id\n";
+
my ($new_id, $obj) = $E{$type}{$old_id} || $T{$type}{import}( $item, @_ );
if ($new_id) {
$E{$type}{$old_id} = $new_id;
- print "Created $type #$old_id\n";
+ print " Created\n";
}
else {
@@ -131,7 +133,7 @@ sub _ConvertItem {
($new_id, $obj) = $T{$type}{import}( $item, @_ );
if ($new_id) {
$E{$type}{$old_id} = $new_id;
- print "Created $type #$old_id as #$new_id\n";
+ print " Created as #$new_id\n";
}
}
unless ( $E{$type}{$old_id} ) {

0 comments on commit 6fd89c5

Please sign in to comment.