[Saga-devel] saga SVN commit 3328: /trunk/adaptors/default/job/

amerzky at cct.lsu.edu amerzky at cct.lsu.edu
Sat Jan 17 16:00:09 CST 2009


User: amerzky
Date: 2009/01/17 04:00 PM

Modified:
 /trunk/adaptors/default/job/
  posix_job.cpp

Log:
 verbosity fix

File Changes:

Directory: /trunk/adaptors/default/job/
=======================================

File [modified]: posix_job.cpp
Delta lines: +6 -0
===================================================================
--- trunk/adaptors/default/job/posix_job.cpp	2009-01-17 21:44:26 UTC (rev 3327)
+++ trunk/adaptors/default/job/posix_job.cpp	2009-01-17 21:59:56 UTC (rev 3328)
@@ -414,6 +414,7 @@
   impl_->set_jd (jd_);
 
 
+  std::string log (" >> ");
 
   if ( jd_.attribute_exists (saga::job::attributes::description_executable) )
   { 
@@ -430,6 +431,8 @@
       SAGA_ADAPTOR_THROW ("executable does not exist",
                           saga::BadParameter);
     }
+
+    log += exe;
   }
 
   if ( jd_.attribute_exists (saga::job::attributes::description_arguments) )
@@ -439,9 +442,12 @@
     for ( int i = 0; i < args.size (); i++ )
     {
       SAGA_LOG_INFO (args[i].c_str ());
+      log += " " + args[i];
     }
   }
 
+  SAGA_LOG_ALWAYS (log.c_str ());
+
   if ( impl_->get_state () != saga::job::New )
   {
     SAGA_ADAPTOR_THROW ("run can only be called on New jobs.", 



More information about the saga-devel mailing list