mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: replace console with logger
This commit is contained in:
parent
59846cfe2f
commit
c9be6b6b92
5 changed files with 6 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
|||
import path from "node:path";
|
||||
import fs from "node:fs";
|
||||
import { logger } from "../logger";
|
||||
|
||||
export const calculateETA = (
|
||||
totalLength: number,
|
||||
|
@ -33,7 +34,7 @@ export const getDirSize = async (dir: string): Promise<number> => {
|
|||
|
||||
return sizes.reduce((total, size) => total + size, 0);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
logger.error(error);
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue