chore: pr feedback

This commit is contained in:
Jason Rasmussen
2025-02-14 11:36:01 -05:00
parent 9cd0871178
commit 6a4f48204d
2 changed files with 10 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { Injectable } from '@nestjs/common';
import { BinaryField, DefaultReadTaskOptions, ExifTool, Tags } from 'exiftool-vendored';
import geotz from 'geo-tz';
import { LogLevel } from 'src/enum';
import { LoggingRepository } from 'src/repositories/logging.repository';
interface ExifDuration {
@@ -101,7 +102,9 @@ export class MetadataRepository {
}
async writeTags(path: string, tags: Partial<Tags>): Promise<void> {
this.logger.verbose(`Writing tags ${JSON.stringify(tags)} to ${path}`);
if (this.logger.isLevelEnabled(LogLevel.VERBOSE)) {
this.logger.verbose(`Writing tags ${JSON.stringify(tags)} to ${path}`);
}
try {
await this.exiftool.write(path, tags);
} catch (error) {