This is an automated email from the ASF dual-hosted git repository.
kumfo pushed a commit to branch fix/cdn
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
The following commit(s) were added to refs/heads/fix/cdn by this push:
new ceaef93 fix(cdn): aliyun oss cdn add sync status check
ceaef93 is described below
commit ceaef93342dea8272430ca01004ef2b0aa2259e3
Author: kumfo <[email protected]>
AuthorDate: Fri Jul 19 15:58:51 2024 +0800
fix(cdn): aliyun oss cdn add sync status check
---
cdn-aliyunoss/aliyunoss.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cdn-aliyunoss/aliyunoss.go b/cdn-aliyunoss/aliyunoss.go
index 2d7c7a2..219dae5 100644
--- a/cdn-aliyunoss/aliyunoss.go
+++ b/cdn-aliyunoss/aliyunoss.go
@@ -114,6 +114,7 @@ func (c *CDN) scanFiles() {
if staticPath == "" {
err := c.scanEmbedFiles("build")
if err != nil {
+ enable = false
log.Error("failed: scan embed files")
return
}
@@ -124,7 +125,8 @@ func (c *CDN) scanFiles() {
err := c.scanStaticPathFiles(staticPath)
if err != nil {
- log.Info("fialed: scan static path files")
+ enable = false
+ log.Error("fialed: scan static path files")
return
}
enable = true