@@ -212,7 +212,7 @@ static char * ConstructData(const CpuProfile *profile) {
212212static Isolate* GetIsolate () {
213213 Isolate *isolate = v8::Isolate::GetCurrent ();
214214 if (isolate == NULL ) {
215- plugin::api.logMessage (debug, " [profiling_node] No V8 Isolate found" );
215+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] No V8 Isolate found" );
216216 }
217217 return isolate;
218218}
@@ -272,11 +272,11 @@ void collectData() {
272272
273273 delete[] serialisedProfile;
274274 } else {
275- plugin::api.logMessage (debug,
275+ plugin::api.logMessage (loggingLevel:: debug,
276276 " [profiling_node] Failed to serialise method profile" ); // CHECK(tunniclm): Should this be a warning?
277277 }
278278 } else {
279- plugin::api.logMessage (debug,
279+ plugin::api.logMessage (loggingLevel:: debug,
280280 " [profiling_node] No method profile found" ); // CHECK(tunniclm): Should this be a warning?
281281 }
282282
@@ -321,7 +321,7 @@ static void publishEnabled() {
321321
322322 std::stringstream logMsg;
323323 logMsg << " [profiling_node] Sending config message [" << msg << " ]" ;
324- plugin::api.logMessage (debug, logMsg.str ().c_str ());
324+ plugin::api.logMessage (loggingLevel:: debug, logMsg.str ().c_str ());
325325
326326 plugin::api.agentSendMessage ((" configuration/" + sourceName).c_str (), msg.length (),
327327 (void *) msg.c_str ());
@@ -334,7 +334,7 @@ static void StartProfilerWithoutTiming(uv_async_t *async, int status) {
334334#endif
335335 if (plugin::enabled) return ;
336336 plugin::enabled = true ;
337- plugin::api.logMessage (debug, " [profiling_node] Publishing config" );
337+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Publishing config" );
338338 publishEnabled ();
339339 StartTheProfiler ();
340340}
@@ -347,7 +347,7 @@ static void StopProfilerWithoutTiming(uv_async_t *async, int status) {
347347 collectData ();
348348 if (!plugin::enabled) return ;
349349 plugin::enabled = false ;
350- plugin::api.logMessage (debug, " [profiling_node] Publishing config" );
350+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Publishing config" );
351351 publishEnabled ();
352352}
353353
@@ -368,7 +368,7 @@ static void enableOnV8Thread(uv_async_t *async, int status) {
368368#endif
369369 if (plugin::enabled) return ;
370370 plugin::enabled = true ;
371- plugin::api.logMessage (debug, " [profiling_node] Publishing config" );
371+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Publishing config" );
372372 publishEnabled ();
373373
374374 StartTheProfiler ();
@@ -385,7 +385,7 @@ static void disableOnV8Thread(uv_async_t *async, int status) {
385385#endif
386386 if (!plugin::enabled) return ;
387387 plugin::enabled = false ;
388- plugin::api.logMessage (debug, " [profiling_node] Publishing config" );
388+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Publishing config" );
389389 publishEnabled ();
390390
391391 uv_timer_stop (plugin::timer);
@@ -425,7 +425,7 @@ extern "C" {
425425 std::string enabledProp (plugin::api.getProperty (" com.ibm.diagnostics.healthcenter.data.profiling" ));
426426 plugin::enabled = (enabledProp == " on" );
427427
428- plugin::api.logMessage (debug, " [profiling_node] Registering push sources" );
428+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Registering push sources" );
429429 pushsource *head = createPushSource (0 , " profiling_node" );
430430 plugin::provid = provID;
431431 return head;
@@ -449,7 +449,7 @@ extern "C" {
449449 plugin::api.logMessage (fine, " [profiling_node] Starting disabled" );
450450 }
451451
452- plugin::api.logMessage (debug, " [profiling_node] Publishing config" );
452+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Publishing config" );
453453 publishEnabled ();
454454
455455 plugin::timer = new uv_timer_t ;
@@ -474,10 +474,10 @@ extern "C" {
474474 uv_unref ((uv_handle_t *)asyncDisable);
475475
476476 if (plugin::enabled) {
477- plugin::api.logMessage (debug, " [profiling_node] Start profiling" );
477+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Start profiling" );
478478 StartTheProfiler ();
479479
480- plugin::api.logMessage (debug, " [profiling_node] Starting timer" );
480+ plugin::api.logMessage (loggingLevel:: debug, " [profiling_node] Starting timer" );
481481 uv_timer_start (plugin::timer, OnGatherDataOnV8Thread, getProfilingInterval (), getProfilingInterval ());
482482 }
483483
@@ -511,12 +511,12 @@ extern "C" {
511511 if (idstring == " profiling_node" ) {
512512 // std::stringstream ss;
513513 // ss << "Received message with id [" << idstring << "], size [" << size << "]";
514- // plugin::api.logMessage(debug, ss.str().c_str());
514+ // plugin::api.logMessage(loggingLevel:: debug, ss.str().c_str());
515515
516516 std::string message ((const char *) data, size);
517517 // if (size > 0) {
518518 // std::string msg = "Message content [" + message + "]";
519- // plugin::api.logMessage(debug, msg.c_str());
519+ // plugin::api.logMessage(loggingLevel:: debug, msg.c_str());
520520 // }
521521 std::size_t found = message.find (' ,' );
522522 std::string command = message.substr (0 , found);
@@ -525,7 +525,7 @@ extern "C" {
525525 if (rest == " profiling_node_subsystem" ) {
526526 bool enabled = (command == " on" );
527527 // std::string msg = "Setting [" + rest + "] to " + (enabled ? "enabled" : "disabled");
528- // plugin::api.logMessage(debug, msg.c_str());
528+ // plugin::api.logMessage(loggingLevel:: debug, msg.c_str());
529529 setEnabled (enabled);
530530
531531 } else if (rest == " profiling_node_v8json" ){
0 commit comments