MCPcopy Create free account
hub / github.com/diillson/chatcli / truncateForLog

Function truncateForLog

cli/memory_worker.go:455–460  ·  view source on GitHub ↗
(s string, maxLen int)

Source from the content-addressed store, hash-verified

453}
454
455func truncateForLog(s string, maxLen int) string {
456 if len(s) <= maxLen {
457 return s
458 }
459 return s[:maxLen] + "..."
460}
461
462// showStatus logs the memory worker status.
463func (mw *memoryWorker) showStatus(msg string) {

Callers 8

formatSkillIndexFunction · 0.70
addConversationThreadMethod · 0.70
graphViewTurnLabelFunction · 0.70
graphTitleFunction · 0.70
graphNeighborsTextMethod · 0.70
writeGraphNodeFunction · 0.70
extractAndSaveMethod · 0.70
graphToDOTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected