mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
Added more debug logs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user