[Bps-public-commit] r12246 -

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon May 12 06:45:25 EDT 2008


Author: sunnavy
Date: Mon May 12 06:45:23 2008
New Revision: 12246

Modified:
   /   (props changed)
   Shipwright/trunk/lib/Shipwright/Script.pm

Log:
 r12251 at sunnavys-mb:  sunnavy | 2008-05-12 16:32:17 +0800
 init logging asap


Modified: Shipwright/trunk/lib/Shipwright/Script.pm
==============================================================================
--- Shipwright/trunk/lib/Shipwright/Script.pm	(original)
+++ Shipwright/trunk/lib/Shipwright/Script.pm	Mon May 12 06:45:23 2008
@@ -31,6 +31,13 @@
 
             my $backend = Shipwright::Backend->new( repository => $repo, );
 
+            # this $shipwright object will do nothing, except for init logging
+            my $shipwright = Shipwright->new(
+                repository => '//magic',
+                log_level  => $args{'-l'} || $args{'--log-level'},
+                log_file   => $args{'--log-file'},
+            );
+
             die "invalid repository: $repo"
               unless $backend->check_repository( action => $ARGV[0] );
         }



More information about the Bps-public-commit mailing list