Browse Source

Merge pull request '存储系统初始化增加打印' (#995) from zouap_static into V20211213

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/995
Reviewed-by: lewis <747342561@qq.com>
tags/v1.21.12.1^2
lewis 4 years ago
parent
commit
7af7ce184e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/storage/storage.go

+ 3
- 0
modules/storage/storage.go View File

@@ -51,6 +51,7 @@ func Init() error {
switch setting.Attachment.StoreType {
case LocalStorageType:
Attachments, err = NewLocalStorage(setting.Attachment.Path)
log.Info("local storage inited.")
case MinioStorageType:
minio := setting.Attachment.Minio
Attachments, err = NewMinioStorage(
@@ -62,6 +63,7 @@ func Init() error {
minio.BasePath,
minio.UseSSL,
)
log.Info("minio storage inited.")
default:
return fmt.Errorf("Unsupported attachment store type: %s", setting.Attachment.StoreType)
}
@@ -71,6 +73,7 @@ func Init() error {
log.Error("obs.New failed:", err)
return err
}
log.Info("obs cli inited.")

if err != nil {
return err


Loading…
Cancel
Save