File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ void Op_rcv::process_payload()
712
712
}
713
713
}
714
714
715
- #ifdef DEBUG_PROTOBUF2
715
+ #ifdef DEBUG_PROTOBUF
716
716
717
717
using std::cerr;
718
718
using std::endl;
Original file line number Diff line number Diff line change 31
31
#include " protocol.h"
32
32
#include " builders.h"
33
33
34
+ PUSH_SYS_WARNINGS
35
+ #include < iostream>
36
+ POP_SYS_WARNINGS
34
37
35
38
PUSH_PB_WARNINGS
36
39
#include " protobuf/mysqlx_session.pb.h"
@@ -251,6 +254,18 @@ void process_notice<notice_type::SessionStateChange>(
251
254
if (!msg.ParseFromString (std::string (notice.begin (), notice.end ())))
252
255
THROW (" Could not parse notice payload" );
253
256
257
+ #ifdef DEBUG_PROTOBUF
258
+
259
+ using std::cerr;
260
+ using std::endl;
261
+
262
+ cerr << endl;
263
+ cerr << " <--- Notice payload:" << endl;
264
+ cerr << msg.DebugString ();
265
+ cerr << " <---" << endl << endl;
266
+
267
+ #endif
268
+
254
269
switch (msg.param ())
255
270
{
256
271
case Mysqlx::Notice::SessionStateChanged::CLIENT_ID_ASSIGNED:
@@ -315,6 +330,18 @@ void process_notice<notice_type::Warning>(
315
330
if (!msg.ParseFromString (std::string (notice.begin (), notice.end ())))
316
331
THROW (" Could not parse notice payload" );
317
332
333
+ #ifdef DEBUG_PROTOBUF
334
+
335
+ using std::cerr;
336
+ using std::endl;
337
+
338
+ cerr << endl;
339
+ cerr << " <--- Notice payload:" << endl;
340
+ cerr << msg.DebugString ();
341
+ cerr << " <---" << endl << endl;
342
+
343
+ #endif
344
+
318
345
short int level;
319
346
320
347
switch (msg.level ())
You can’t perform that action at this time.
0 commit comments