fix: use logger for error handling in VikingFile.ts

This commit is contained in:
Moyasee
2026-01-02 23:24:20 +02:00
parent d929fbaeaa
commit 9a7ad148e3

View File

@@ -1,4 +1,5 @@
import axios from "axios";
import { logger } from "../logger";
interface UnlockResponse {
link: string;
@@ -44,7 +45,10 @@ export class VikingFileApi {
return redirectUrl;
} catch (error) {
// Fallback to the redirect URL if following redirect fails
logger.error(
`[VikingFile] Error following redirect, using redirect URL:`,
error
);
return redirectUrl;
}
}