pull/243/head
xiaojunnuo 2024-11-01 02:19:00 +08:00
parent 2dcc3206e1
commit a59eb0c4c7
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ export const agents: any;
* Logger
*/
export function setLogger(fn: (...msg: any) => void): void;
export function setLogger(fn: (message: any, ...args: any[]) => void): void;
export function walkTxtRecord(record: any): Promise<string[]>;

View File

@ -60,8 +60,8 @@ export class AcmeService {
this.sslProvider = options.sslProvider || "letsencrypt";
this.eab = options.eab;
this.skipLocalVerify = options.skipLocalVerify ?? false;
acme.setLogger((...text: any) => {
this.logger.info(...text);
acme.setLogger((message: any, ...args: any[]) => {
this.logger.info(message, ...args);
});
}