Added more debug logs

This commit is contained in:
2023-04-23 18:54:32 +07:00
parent cecbafd9f0
commit 29edd91628
13 changed files with 177 additions and 18 deletions
+5
View File
@@ -1,5 +1,8 @@
import { createHmac } from 'crypto';
import Environment from '../providers/Environment';
import Logger from './Logger';
const LOGGING_TAG = '[ImageProxy]';
export default class ImagePorxy {
public static signImageProxyURL(url: string, modifiers: string | undefined = undefined) {
@@ -22,6 +25,8 @@ export default class ImagePorxy {
const signature = sign(Environment.get().IMGPROXY_SALT, path, Environment.get().IMGPROXY_KEY);
const result = `${Environment.get().IMGPROXY_HOST}${signature}${path}`;
Logger.verbose(LOGGING_TAG, `Signed URL ${result}`);
return result;
}
}