feat: Update error handling to use getErrorMessage utility and improve logging across multiple services
This commit is contained in:
@@ -382,9 +382,9 @@ export class OneboxServicesManager {
|
||||
const logs = await this.docker.getContainerLogs(service.containerID, tail);
|
||||
|
||||
// Debug: check what we got
|
||||
logger.log(`getServiceLogs: logs type = ${typeof logs}, constructor = ${logs?.constructor?.name}`);
|
||||
logger.log(`getServiceLogs: logs.stdout type = ${typeof logs.stdout}`);
|
||||
logger.log(`getServiceLogs: logs.stdout value = ${String(logs.stdout).slice(0, 100)}`);
|
||||
logger.debug(`getServiceLogs: logs type = ${typeof logs}, constructor = ${logs?.constructor?.name}`);
|
||||
logger.debug(`getServiceLogs: logs.stdout type = ${typeof logs.stdout}`);
|
||||
logger.debug(`getServiceLogs: logs.stdout value = ${String(logs.stdout).slice(0, 100)}`);
|
||||
|
||||
// v5 API returns combined stdout/stderr with proper formatting
|
||||
return logs.stdout;
|
||||
@@ -746,7 +746,7 @@ export class OneboxServicesManager {
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error(`Failed to check updates for ${service.name}: ${error.message}`);
|
||||
logger.error(`Failed to check updates for ${service.name}: ${getErrorMessage(error)}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user