Commit 1bea219 1 parent 0932f9a commit 1bea219 Copy full SHA for 1bea219
File tree 2 files changed +9
-1
lines changed
src/main/java/top/gotoeasy/framework/glc/logback/appender
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
<groupId >top.gotoeasy</groupId >
7
7
<artifactId >glc-logback-appender</artifactId >
8
- <version >0.17.0 </version >
8
+ <version >0.17.1 </version >
9
9
<description >logback appender for glogcenter</description >
10
10
11
11
<repositories >
Original file line number Diff line number Diff line change @@ -139,6 +139,14 @@ public void start() {
139
139
if (apiUrl != null ) {
140
140
apiUrl = apiUrl .trim ();
141
141
if (!"" .equals (apiUrl )) {
142
+ if (!apiUrl .endsWith ("/glc/v1/log/add" )) {
143
+ // 允许省略接口路径,默认自动补足以简化使用
144
+ if (apiUrl .endsWith ("/" )) {
145
+ apiUrl += "glc/v1/log/add" ;
146
+ } else {
147
+ apiUrl += "/glc/v1/log/add" ;
148
+ }
149
+ }
142
150
setGlcApiUrl (apiUrl );
143
151
}
144
152
}
You can’t perform that action at this time.
0 commit comments