Skip to content

Commit c4eea26

Browse files
committed
Fix log messages in subtitles editor
1 parent 97acddf commit c4eea26

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/pages/home/calendar_editor/video_subtitles_editor_page.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ class _VideoSubtitlesEditorPageState extends State<VideoSubtitlesEditorPage> {
157157

158158
if (isEdit) {
159159
Utils.logInfo(
160-
'{$logTag}Editing subtitles for ${widget.videoPath}');
160+
'${logTag}Editing subtitles for ${widget.videoPath}');
161161
command =
162162
'-i ${widget.videoPath} -i $subtitles -c:s mov_text -c:v copy -c:a copy -map 0:v -map 0:a? -map 1 -disposition:s:0 default $tempPath -y';
163163
} else {
164164
Utils.logInfo(
165-
'{$logTag}Adding brand new subtitles for ${widget.videoPath}');
165+
'${logTag}Adding brand new subtitles for ${widget.videoPath}');
166166
command =
167167
'-i ${widget.videoPath} -i $subtitles -c copy -c:s mov_text $tempPath -y';
168168
}
@@ -171,17 +171,17 @@ class _VideoSubtitlesEditorPageState extends State<VideoSubtitlesEditorPage> {
171171
final returnCode = await session.getReturnCode();
172172
if (ReturnCode.isSuccess(returnCode)) {
173173
Utils.logInfo(
174-
'{$logTag}Video subtitles updated successfully!');
174+
'${logTag}Video subtitles updated successfully!');
175175
StorageUtils.deleteFile(widget.videoPath);
176176
StorageUtils.renameFile(tempPath, widget.videoPath);
177177
} else {
178-
Utils.logError('{$logTag}Video subtitles update failed!');
178+
Utils.logError('${logTag}Video subtitles update failed!');
179179
final sessionLog = await session.getLogsAsString();
180180
final failureStackTrace =
181181
await session.getFailStackTrace();
182-
Utils.logError('{$logTag}Session log: $sessionLog');
182+
Utils.logError('${logTag}Session log: $sessionLog');
183183
Utils.logError(
184-
'{$logTag}Failure stacktrace: $failureStackTrace');
184+
'${logTag}Failure stacktrace: $failureStackTrace');
185185
}
186186
});
187187

0 commit comments

Comments
 (0)