log-llm-config 1.3.11 → 1.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -158,9 +158,13 @@ async function sendConfigFile(configFile, hardwareUuid, authKey) {
|
|
|
158
158
|
const body = { ...payload, signature, key_id: authKey.key_id || '', metadata: { org_identifier: process.env.GITHUB_ORG || process.env.GH_ORG || '', repo_identifier: process.env.GITHUB_REPOSITORY || process.env.GH_REPOSITORY || '' } };
|
|
159
159
|
try {
|
|
160
160
|
const response = await postStartupPayload(apiUrl, body);
|
|
161
|
+
if (response.status !== 'accepted') {
|
|
162
|
+
hookRunLog(`sendConfigFile: rejected status=${response.status} error=${response.error ?? ''} path=${configFile.file_path}`);
|
|
163
|
+
}
|
|
161
164
|
return response.status === 'accepted';
|
|
162
165
|
}
|
|
163
|
-
catch {
|
|
166
|
+
catch (err) {
|
|
167
|
+
hookRunLog(`sendConfigFile: request failed path=${configFile.file_path} err=${err instanceof Error ? err.message : String(err)}`);
|
|
164
168
|
return false;
|
|
165
169
|
}
|
|
166
170
|
}
|