[PR #525] [MERGED] new workflow logging #979

Closed
opened 2026-03-03 01:07:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/certimate-go/certimate/pull/525
Author: @fudiwei
Created: 3/16/2025
Status: Merged
Merged: 3/20/2025
Merged by: @usual2970

Base: mainHead: main


📝 Commits (7)

  • c13a7a7 feat: logging
  • b620052 feat: adapt new logging to uploader, deployer and notifier providers
  • af5d746 feat: adapt new logging to workflow node processors
  • fd6e41c feat(ui): workflow logs
  • 882f802 feat(ui): enhance workflow logs display
  • 914c5b4 refactor: clean code
  • e27d4f1 feat: auto cleanup workflow history runs and expired certificates

📊 Changes

166 files changed (+3334 additions, -1815 deletions)

View changed files

📝 internal/applicant/acme_user.go (+3 -3)
📝 internal/applicant/applicant.go (+3 -3)
📝 internal/applicant/providers.go (+28 -28)
📝 internal/certificate/service.go (+45 -9)
📝 internal/deployer/deployer.go (+11 -3)
📝 internal/deployer/providers.go (+163 -163)
📝 internal/domain/certificate.go (+3 -3)
📝 internal/domain/settings.go (+9 -6)
📝 internal/domain/workflow.go (+31 -31)
internal/domain/workflow_log.go (+30 -0)
📝 internal/domain/workflow_run.go (+1 -38)
📝 internal/notify/notify.go (+2 -2)
📝 internal/notify/providers.go (+19 -19)
📝 internal/pkg/core/deployer/deployer.go (+6 -1)
📝 internal/pkg/core/deployer/providers/1panel-console/1panel_console.go (+10 -7)
📝 internal/pkg/core/deployer/providers/1panel-site/1panel_site.go (+13 -10)
📝 internal/pkg/core/deployer/providers/aliyun-alb/aliyun_alb.go (+24 -24)
📝 internal/pkg/core/deployer/providers/aliyun-cas-deploy/aliyun_cas_deploy.go (+17 -12)
📝 internal/pkg/core/deployer/providers/aliyun-cdn/aliyun_cdn.go (+10 -7)
📝 internal/pkg/core/deployer/providers/aliyun-clb/aliyun_clb.go (+20 -20)

...and 80 more files

📄 Description

该 PR 包含以下内容变更:

  • feat: 新的工作流日志实现:
    • 完全兼容 go 内置的 log/slog 库;
    • 将工作流执行历史(WorkflowRun)与日志(WorkflowLog)解耦;
    • 区分日志等级,对于调用第三方 SDK 的会记录更详细的 DEBUG 请求信息,关闭 #369;
    • 后台实时入库,前端实时刷新;
    • 优化 UI。
  • feat: 支持设置工作流执行历史及日志定期清理(入口:系统设置 -> 数据持久化)。
  • feat: 支持设置过期证书定期清理(入口:系统设置 -> 数据持久化)。

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/certimate-go/certimate/pull/525 **Author:** [@fudiwei](https://github.com/fudiwei) **Created:** 3/16/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@usual2970](https://github.com/usual2970) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (7) - [`c13a7a7`](https://github.com/certimate-go/certimate/commit/c13a7a7873f9b0f3ee903045ed8a1b2c5d6af0bc) feat: logging - [`b620052`](https://github.com/certimate-go/certimate/commit/b620052b88fd91c0187a20898de31a46a281213a) feat: adapt new logging to uploader, deployer and notifier providers - [`af5d746`](https://github.com/certimate-go/certimate/commit/af5d7465a10bf1e152f21646bb92d7d7b60e3397) feat: adapt new logging to workflow node processors - [`fd6e41c`](https://github.com/certimate-go/certimate/commit/fd6e41c566fac67f9ceb97ed8e25ccd4b3d67df8) feat(ui): workflow logs - [`882f802`](https://github.com/certimate-go/certimate/commit/882f8025853449b9a581e04dc2c10936ac86bfe1) feat(ui): enhance workflow logs display - [`914c5b4`](https://github.com/certimate-go/certimate/commit/914c5b487056f640d6ab5718ea404aec818d9562) refactor: clean code - [`e27d4f1`](https://github.com/certimate-go/certimate/commit/e27d4f11eedc64479cb973a2c17c6350bac3b397) feat: auto cleanup workflow history runs and expired certificates ### 📊 Changes **166 files changed** (+3334 additions, -1815 deletions) <details> <summary>View changed files</summary> 📝 `internal/applicant/acme_user.go` (+3 -3) 📝 `internal/applicant/applicant.go` (+3 -3) 📝 `internal/applicant/providers.go` (+28 -28) 📝 `internal/certificate/service.go` (+45 -9) 📝 `internal/deployer/deployer.go` (+11 -3) 📝 `internal/deployer/providers.go` (+163 -163) 📝 `internal/domain/certificate.go` (+3 -3) 📝 `internal/domain/settings.go` (+9 -6) 📝 `internal/domain/workflow.go` (+31 -31) ➕ `internal/domain/workflow_log.go` (+30 -0) 📝 `internal/domain/workflow_run.go` (+1 -38) 📝 `internal/notify/notify.go` (+2 -2) 📝 `internal/notify/providers.go` (+19 -19) 📝 `internal/pkg/core/deployer/deployer.go` (+6 -1) 📝 `internal/pkg/core/deployer/providers/1panel-console/1panel_console.go` (+10 -7) 📝 `internal/pkg/core/deployer/providers/1panel-site/1panel_site.go` (+13 -10) 📝 `internal/pkg/core/deployer/providers/aliyun-alb/aliyun_alb.go` (+24 -24) 📝 `internal/pkg/core/deployer/providers/aliyun-cas-deploy/aliyun_cas_deploy.go` (+17 -12) 📝 `internal/pkg/core/deployer/providers/aliyun-cdn/aliyun_cdn.go` (+10 -7) 📝 `internal/pkg/core/deployer/providers/aliyun-clb/aliyun_clb.go` (+20 -20) _...and 80 more files_ </details> ### 📄 Description 该 PR 包含以下内容变更: - **feat**: 新的工作流日志实现: - 完全兼容 go 内置的 `log/slog` 库; - 将工作流执行历史(WorkflowRun)与日志(WorkflowLog)解耦; - 区分日志等级,对于调用第三方 SDK 的会记录更详细的 DEBUG 请求信息,关闭 #369; - 后台实时入库,前端实时刷新; - 优化 UI。 - **feat**: 支持设置工作流执行历史及日志定期清理(入口:系统设置 -> 数据持久化)。 - **feat**: 支持设置过期证书定期清理(入口:系统设置 -> 数据持久化)。 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:07:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#979
No description provided.