mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-14 20:01:58 +08:00
feat: enhance login status management and improve error logging across services
This commit is contained in:
@@ -54,7 +54,7 @@ let cachedConfig: Config;
|
||||
try {
|
||||
cachedConfig = JSON.parse(fs.readFileSync(configPath, "utf-8")) as Config;
|
||||
} catch (error) {
|
||||
console.error(`Error reading or parsing config.json at ${configPath}`, error);
|
||||
console.info(`Error reading or parsing config.json at ${configPath}`, error);
|
||||
// Provide a default fallback config to prevent crashes
|
||||
cachedConfig = {
|
||||
api_site: {},
|
||||
|
||||
@@ -35,7 +35,7 @@ router.get("/", async (req: Request, res: Response) => {
|
||||
res.status(500).send("Image response has no body");
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Image proxy error:", error);
|
||||
console.info("Image proxy error:", error);
|
||||
res.status(500).send("Error fetching image");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user