2e3ebc43 by Ean Schuessler

Add debug logging to BrowseScreens service

1 parent 2f74974d
......@@ -1277,6 +1277,7 @@ def wikiInstructions = getWikiInstructions(inputScreenPath)
import org.moqui.context.ExecutionContext
ExecutionContext ec = context.ec
ec.logger.info("BrowseScreens: SERVICE STARTED")
def subscreens = []
def currentPath = path ?: "root"
def userGroups = ec.user.getUserGroupIdSet().collect { it }
......@@ -1367,7 +1368,8 @@ def wikiInstructions = getWikiInstructions(inputScreenPath)
// Helper to extract short description from wiki content
def getShortDescription = { wikiText ->
if (!wikiText) return null
def lines = wikiText.split('\n')
def textString = wikiText instanceof String ? wikiText : new String(wikiText, "UTF-8")
def lines = textString.split('\n')
for (def line : lines) {
if (line.trim() && !line.trim().startsWith('#')) {
return line.trim().take(200)
......