mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
feat: Use better way to handle messages
This commit is contained in:
@@ -32,7 +32,10 @@ export function format_message(
|
||||
message: unknown[],
|
||||
options?: Deno.InspectOptions,
|
||||
) {
|
||||
return message.map((x) => Deno.inspect(x, options)).join(" ");
|
||||
return message.map((x) => {
|
||||
if (typeof x === "string") return x;
|
||||
return Deno.inspect(x, options);
|
||||
}).join(" ");
|
||||
}
|
||||
|
||||
class BaseLogger {
|
||||
|
||||
Reference in New Issue
Block a user