MCPcopy Create free account
hub / github.com/apache/impala / SecureShortDebugString

Function SecureShortDebugString

be/src/kudu/util/pb_util.cc:653–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653string SecureShortDebugString(const Message& msg) {
654 string debug_string;
655
656 TextFormat::Printer printer;
657 printer.SetSingleLineMode(true);
658 printer.SetDefaultFieldValuePrinter(new SecureFieldPrinter());
659
660 printer.PrintToString(msg, &debug_string);
661 // Single line mode currently might have an extra space at the end.
662 if (!debug_string.empty() &&
663 debug_string[debug_string.size() - 1] == ' ') {
664 debug_string.resize(debug_string.size() - 1);
665 }
666
667 return debug_string;
668}
669
670WritablePBContainerFile::WritablePBContainerFile(shared_ptr<RWFile> writer)
671 : state_(FileState::NOT_INITIALIZED),

Callers 9

DoSleepMethod · 0.85
DoSleepWithSidecarMethod · 0.85
TrackRpcUnlockedMethod · 0.85
ToStringMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
DumpMethod · 0.85

Calls 3

resizeMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 4

DoSleepMethod · 0.68
DoSleepWithSidecarMethod · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68