Get journal api wrapper working for detailed logs

This commit is contained in:
2025-09-04 13:17:44 +01:00
parent 2dd3d234df
commit b070554fdd
4 changed files with 57 additions and 37 deletions

View File

@@ -291,7 +291,7 @@ p.cssvalid,p.htmlvalid {float:left;margin-right:20px}
padding: 1em;
border-radius: 6px;
font-family: monospace, monospace;
font-size: 0.95em;
font-size: 0.75em;
line-height: 1.4;
overflow-x: auto;
}

View File

@@ -94,7 +94,7 @@ if (!$pid || $pid < 1) {
// Journal retrieval using C wrapper
define('FFI_LIB', 'libjournalwrap.so'); // adjust if needed
define('WRAPPER_BIN', '/usr/local/bin/journalwrap'); // fallback executable path
define('WRAPPER_BIN', '/usr/bin/journalwrap'); // fallback executable path
define('MAX_OUTPUT_BYTES', 2_000_000); // 2MB safety cap
function getJournalByPidViaFFI(int $pid): ?string {