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

@@ -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 {