You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 11:02:59 UTC

svn commit: r1132219 - in /incubator/mesos/trunk/src/python/native: mesos_executor_driver_impl.cpp mesos_scheduler_driver_impl.cpp module.cpp proxy_executor.cpp proxy_scheduler.cpp

Author: benh
Date: Sun Jun  5 09:02:59 2011
New Revision: 1132219

URL: http://svn.apache.org/viewvc?rev=1132219&view=rev
Log:
Removed some debug output

Modified:
    incubator/mesos/trunk/src/python/native/mesos_executor_driver_impl.cpp
    incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp
    incubator/mesos/trunk/src/python/native/module.cpp
    incubator/mesos/trunk/src/python/native/proxy_executor.cpp
    incubator/mesos/trunk/src/python/native/proxy_scheduler.cpp

Modified: incubator/mesos/trunk/src/python/native/mesos_executor_driver_impl.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/python/native/mesos_executor_driver_impl.cpp?rev=1132219&r1=1132218&r2=1132219&view=diff
==============================================================================
--- incubator/mesos/trunk/src/python/native/mesos_executor_driver_impl.cpp (original)
+++ incubator/mesos/trunk/src/python/native/mesos_executor_driver_impl.cpp Sun Jun  5 09:02:59 2011
@@ -5,7 +5,6 @@
 #include "proxy_executor.hpp"
 
 using std::cerr;
-using std::cout;
 using std::endl;
 using std::string;
 using std::vector;
@@ -92,7 +91,6 @@ PyObject* MesosExecutorDriverImpl_new(Py
                                        PyObject *args,
                                        PyObject *kwds)
 {
-  cout << "In MesosExecutorDriverImpl_new" << endl;
   MesosExecutorDriverImpl *self;
   self = (MesosExecutorDriverImpl *) type->tp_alloc(type, 0);
   if (self != NULL) {
@@ -111,7 +109,6 @@ int MesosExecutorDriverImpl_init(MesosEx
                                   PyObject *args,
                                   PyObject *kwds)
 {
-  cout << "In MesosExecutorDriverImpl_init" << endl;
   PyObject *pythonExecutor = NULL;
 
   if (!PyArg_ParseTuple(args, "O", &pythonExecutor)) {
@@ -148,7 +145,6 @@ int MesosExecutorDriverImpl_init(MesosEx
  */
 void MesosExecutorDriverImpl_dealloc(MesosExecutorDriverImpl* self)
 {
-  cout << "In MesosExecutorDriverImpl_dealloc" << endl;
   if (self->driver != NULL) {
     self->driver->stop();
     delete self->driver;

Modified: incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp?rev=1132219&r1=1132218&r2=1132219&view=diff
==============================================================================
--- incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp (original)
+++ incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp Sun Jun  5 09:02:59 2011
@@ -5,7 +5,6 @@
 #include "proxy_scheduler.hpp"
 
 using std::cerr;
-using std::cout;
 using std::endl;
 using std::string;
 using std::vector;
@@ -100,7 +99,6 @@ PyObject* MesosSchedulerDriverImpl_new(P
                                        PyObject *args,
                                        PyObject *kwds)
 {
-  cout << "In MesosSchedulerDriverImpl_new" << endl;
   MesosSchedulerDriverImpl *self;
   self = (MesosSchedulerDriverImpl *) type->tp_alloc(type, 0);
   if (self != NULL) {
@@ -119,7 +117,6 @@ int MesosSchedulerDriverImpl_init(MesosS
                                   PyObject *args,
                                   PyObject *kwds)
 {
-  cout << "In MesosSchedulerDriverImpl_init" << endl;
   PyObject *pythonScheduler = NULL;
   const char* url;
   PyObject *frameworkId = NULL;
@@ -171,7 +168,6 @@ int MesosSchedulerDriverImpl_init(MesosS
  */
 void MesosSchedulerDriverImpl_dealloc(MesosSchedulerDriverImpl* self)
 {
-  cout << "In MesosSchedulerDriverImpl_dealloc" << endl;
   if (self->driver != NULL) {
     self->driver->stop();
     delete self->driver;

Modified: incubator/mesos/trunk/src/python/native/module.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/python/native/module.cpp?rev=1132219&r1=1132218&r2=1132219&view=diff
==============================================================================
--- incubator/mesos/trunk/src/python/native/module.cpp (original)
+++ incubator/mesos/trunk/src/python/native/module.cpp Sun Jun  5 09:02:59 2011
@@ -23,9 +23,6 @@
 #include "proxy_executor.hpp"
 #include "mesos_executor_driver_impl.hpp"
 
-using std::cout;
-using std::cerr;
-using std::endl;
 using std::string;
 using std::vector;
 using std::map;

Modified: incubator/mesos/trunk/src/python/native/proxy_executor.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/python/native/proxy_executor.cpp?rev=1132219&r1=1132218&r2=1132219&view=diff
==============================================================================
--- incubator/mesos/trunk/src/python/native/proxy_executor.cpp (original)
+++ incubator/mesos/trunk/src/python/native/proxy_executor.cpp Sun Jun  5 09:02:59 2011
@@ -4,7 +4,6 @@
 #include "module.hpp"
 #include "mesos_executor_driver_impl.hpp"
 
-using std::cout;
 using std::cerr;
 using std::endl;
 using std::string;
@@ -17,7 +16,6 @@ namespace mesos { namespace python {
 void ProxyExecutor::init(ExecutorDriver* driver,
                          const ExecutorArgs& args)
 {
-  cout << "ProxyExecutor::init being called" << endl;
   InterpreterLock lock;
   
   PyObject* argsObj = NULL;
@@ -51,7 +49,6 @@ cleanup:
 void ProxyExecutor::launchTask(ExecutorDriver* driver,
                                const TaskDescription& task)
 {
-  cout << "ProxyExecutor::launchTask being called" << endl;
   InterpreterLock lock;
   
   PyObject* taskObj = NULL;
@@ -85,7 +82,6 @@ cleanup:
 void ProxyExecutor::killTask(ExecutorDriver* driver,
                              const TaskID& taskId)
 {
-  cout << "ProxyExecutor::killTask being called" << endl;
   InterpreterLock lock;
   
   PyObject* taskIdObj = NULL;
@@ -119,7 +115,6 @@ cleanup:
 void ProxyExecutor::frameworkMessage(ExecutorDriver* driver,
                                      const FrameworkMessage& message)
 {
-  cout << "ProxyExecutor::frameworkMessage being called" << endl;
   InterpreterLock lock;
   
   PyObject* messageObj = NULL;
@@ -152,7 +147,6 @@ cleanup:
 
 void ProxyExecutor::shutdown(ExecutorDriver* driver)
 {
-  cout << "ProxyExecutor::shutdown being called" << endl;
   InterpreterLock lock;
   PyObject* res = PyObject_CallMethod(impl->pythonExecutor,
                             (char*) "shutdown",
@@ -175,7 +169,6 @@ void ProxyExecutor::error(ExecutorDriver
                           int code,
                           const string& message)
 {
-  cout << "ProxyExecutor::error being called" << endl;
   InterpreterLock lock;
   PyObject* res = PyObject_CallMethod(impl->pythonExecutor,
                                       (char*) "error",

Modified: incubator/mesos/trunk/src/python/native/proxy_scheduler.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/python/native/proxy_scheduler.cpp?rev=1132219&r1=1132218&r2=1132219&view=diff
==============================================================================
--- incubator/mesos/trunk/src/python/native/proxy_scheduler.cpp (original)
+++ incubator/mesos/trunk/src/python/native/proxy_scheduler.cpp Sun Jun  5 09:02:59 2011
@@ -4,7 +4,6 @@
 #include "module.hpp"
 #include "mesos_scheduler_driver_impl.hpp"
 
-using std::cout;
 using std::cerr;
 using std::endl;
 using std::string;
@@ -15,7 +14,6 @@ using namespace mesos;
 namespace mesos { namespace python {
 
 string ProxyScheduler::getFrameworkName(SchedulerDriver* driver) {
-  cout << "ProxyScheduler::getFrameworkName being called" << endl;
   InterpreterLock lock;
   PyObject* res = PyObject_CallMethod(impl->pythonScheduler,
                                       (char*) "getFrameworkName",
@@ -47,7 +45,6 @@ string ProxyScheduler::getFrameworkName(
 
 
 ExecutorInfo ProxyScheduler::getExecutorInfo(SchedulerDriver* driver) {
-  cout << "ProxyScheduler::getExecutorInfo being called" << endl;
   InterpreterLock lock;
   ExecutorInfo info;
   PyObject* res = PyObject_CallMethod(impl->pythonScheduler,
@@ -79,7 +76,6 @@ cleanup:
 void ProxyScheduler::registered(SchedulerDriver* driver,
                                 const FrameworkID& frameworkId)
 {
-  cout << "ProxyScheduler::registered being called" << endl;
   InterpreterLock lock;
   
   PyObject* fid = NULL;
@@ -114,7 +110,6 @@ void ProxyScheduler::resourceOffer(Sched
                                    const OfferID& offerId,
                                    const vector<SlaveOffer>& offers)
 {
-  cout << "ProxyScheduler::resourceOffer being called" << endl;
   InterpreterLock lock;
 
   PyObject* oid = NULL;
@@ -163,7 +158,6 @@ cleanup:
 void ProxyScheduler::offerRescinded(SchedulerDriver* driver,
                                     const OfferID& offerId)
 {
-  cout << "ProxyScheduler::offerRescinded being called" << endl;
   InterpreterLock lock;
   
   PyObject* oid = NULL;
@@ -197,7 +191,6 @@ cleanup:
 void ProxyScheduler::statusUpdate(SchedulerDriver* driver,
                                   const TaskStatus& status)
 {
-  cout << "ProxyScheduler::statusUpdate being called" << endl;
   InterpreterLock lock;
   
   PyObject* stat = NULL;
@@ -231,7 +224,6 @@ cleanup:
 void ProxyScheduler::frameworkMessage(SchedulerDriver* driver,
                                       const FrameworkMessage& message)
 {
-  cout << "ProxyScheduler::frameworkMessage being called" << endl;
   InterpreterLock lock;
   
   PyObject* msg = NULL;
@@ -265,7 +257,6 @@ cleanup:
 void ProxyScheduler::slaveLost(SchedulerDriver* driver,
                                const SlaveID& slaveId)
 {
-  cout << "ProxyScheduler::slaveLost being called" << endl;
   InterpreterLock lock;
   
   PyObject* sid = NULL;
@@ -300,7 +291,6 @@ void ProxyScheduler::error(SchedulerDriv
                            int code,
                            const string& message)
 {
-  cout << "ProxyScheduler::error being called" << endl;
   InterpreterLock lock;
   PyObject* res = PyObject_CallMethod(impl->pythonScheduler,
                                       (char*) "error",