diff --git a/bun.lock b/bun.lock index 2880d8cb..0edf6a45 100644 --- a/bun.lock +++ b/bun.lock @@ -5,7 +5,7 @@ "": { "name": "fastgpt-plugins", "dependencies": { - "@fastgpt-sdk/storage": "^0.6.2", + "@fastgpt-sdk/storage": "^0.6.4", "@ts-rest/core": "3.52.1", "@ts-rest/express": "3.52.1", "@ts-rest/open-api": "3.52.1", @@ -42,7 +42,7 @@ "name": "@fastgpt-plugin/packages", "version": "1.0.0", "dependencies": { - "@fastgpt-sdk/storage": "0.6.2", + "@fastgpt-sdk/storage": "^0.6.4", "@opentelemetry/api": "^1.9.0", "@opentelemetry/api-logs": "^0.203.0", "@opentelemetry/exporter-logs-otlp-http": "^0.203.0", @@ -339,7 +339,7 @@ "@fastgpt-sdk/plugin": ["@fastgpt-sdk/plugin@workspace:sdk"], - "@fastgpt-sdk/storage": ["@fastgpt-sdk/storage@0.6.2", "", { "dependencies": { "@aws-sdk/client-s3": "^3.948.0", "@aws-sdk/lib-storage": "^3.948.0", "@aws-sdk/s3-request-presigner": "^3.952.0", "ali-oss": "^6.23.0", "cos-nodejs-sdk-v5": "^2.15.4", "es-toolkit": "^1.43.0", "minio": "^8.0.5", "vitest": "^4.0.16" } }, "sha512-n8dV7NIJuzRz+9Z33HxkN0CsHgh0rDGaZ1W3GJzeDVsdWvDeb+34Xi65XCnXImDs7Pe8RJd1nXLbLCT0uC7S4A=="], + "@fastgpt-sdk/storage": ["@fastgpt-sdk/storage@0.6.4", "", { "dependencies": { "@aws-sdk/client-s3": "^3.948.0", "@aws-sdk/lib-storage": "^3.948.0", "@aws-sdk/s3-request-presigner": "^3.952.0", "ali-oss": "^6.23.0", "cos-nodejs-sdk-v5": "^2.15.4", "es-toolkit": "^1.43.0", "minio": "^8.0.5", "vitest": "^4.0.16" } }, "sha512-3AfpomosObt+PD8c6v9cquTH8q4R0Jj5o7lgRt5lGcVkjImf3afraOsBRSdwgL/BXmgdN4qM4MIIxqGQEVwpIA=="], "@fastgpt/plugin-runtime": ["@fastgpt/plugin-runtime@workspace:runtime"], diff --git a/lib/package.json b/lib/package.json index 8f16df24..ea0e6ee1 100644 --- a/lib/package.json +++ b/lib/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "FastGPT Plugins", "dependencies": { - "@fastgpt-sdk/storage": "0.6.2", + "@fastgpt-sdk/storage": "^0.6.4", "@opentelemetry/api": "^1.9.0", "@opentelemetry/api-logs": "^0.203.0", "@opentelemetry/exporter-logs-otlp-http": "^0.203.0", diff --git a/lib/s3/index.ts b/lib/s3/index.ts index 15ca982b..de92d661 100644 --- a/lib/s3/index.ts +++ b/lib/s3/index.ts @@ -91,16 +91,14 @@ const createS3Service = async (bucket: string, isPublic: boolean) => { await client.ensureBucket(); if (isPublic) await ensurePublicPolicy(client); } catch (error) { - addLog.error(`Failed to ensure bucket "${bucket}" exists:`, error); - addLog.debug(`Storage client:`, client); + addLog.info(`Failed to ensure bucket "${bucket}" exists:`, { error }); } try { await externalClient?.ensureBucket(); if (isPublic && externalClient) await ensurePublicPolicy(externalClient); } catch (error) { - addLog.error(`Failed to ensure bucket "${bucket}" exists:`, error); - addLog.debug(`Storage client:`, externalClient); + addLog.info(`Failed to ensure bucket "${bucket}" exists:`, { error }); } return new S3Service(client, externalClient); diff --git a/package.json b/package.json index 59850c68..2e1e9069 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ ] }, "dependencies": { - "@fastgpt-sdk/storage": "^0.6.2", + "@fastgpt-sdk/storage": "^0.6.4", "@ts-rest/core": "3.52.1", "@ts-rest/express": "3.52.1", "@ts-rest/open-api": "3.52.1",