Skip to content

Commit f617c9d

Browse files
fix: Fix the issue where viewing logs during certificate application results in an error. (1Panel-dev#9853)
1 parent c661cc3 commit f617c9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agent/app/service/website_ssl.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ func (w WebsiteSSLService) Create(create request.WebsiteSSLCreate) (request.Webs
185185
return res, err
186186
}
187187
create.ID = websiteSSL.ID
188+
logFile, _ := os.OpenFile(path.Join(global.Dir.SSLLogDir, fmt.Sprintf("%s-ssl-%d.log", websiteSSL.PrimaryDomain, websiteSSL.ID)), os.O_CREATE|os.O_WRONLY|os.O_TRUNC, constant.FilePerm)
189+
logFile.Close()
188190
go func() {
189191
if create.Provider != constant.DnsManual {
190192
if err = w.ObtainSSL(request.WebsiteSSLApply{

0 commit comments

Comments
 (0)