Skip to content

Commit 60f1bc9

Browse files
author
li-guohao
committed
optimize: 导入附件失败时的日志提示
1 parent f91bdbe commit 60f1bc9

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

CHANGELOG.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。
44

5+
# 0.12.8
6+
7+
## 优化
8+
9+
- 导入附件失败时的日志提示
10+
511
# 0.12.7
612

713
## 优化

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
group=run.ikaros.plugin.alist
22
description=A ikaros plugin for alist.
3-
version=0.12.7
3+
version=0.12.8

src/main/java/run/ikaros/plugin/alist/AListClient.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ private Mono<Void> createAttachmentRecursively(List<String> paths, Long parentId
9797
if (aListAttachment.getIs_dir()) {
9898
return Mono.defer(() ->
9999
createAttachmentRecursively(aListAttachment.getPaths(), aListAttachment.getId()))
100-
.subscribeOn(Schedulers.boundedElastic());
100+
.subscribeOn(Schedulers.boundedElastic())
101+
.doOnError(error -> log.error("create attachment fail for alist path[{}], err msg:[{}]",
102+
getPathByPathArr(aListAttachment.getPaths()), error.getMessage(), error));
101103
} else {
102104
return Mono.empty();
103105
}

src/main/resources/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: PluginAList
44
# plugin entry class that extends BasePlugin
55
clazz: run.ikaros.plugin.alist.AListPlugin
66
# plugin 'version' is a valid semantic version string (see semver.org).
7-
version: 0.12.7
7+
version: 0.12.8
88
requires: ">=0.12.1"
99
author:
1010
name: Ikaros OSS Team

0 commit comments

Comments
 (0)