-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: log video path if exists, regardless of compression #26813
Changes from 5 commits
8613e8a
30185b8
df25868
2fe6129
523417a
6795f73
de0ed17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -477,12 +477,6 @@ function displayScreenshots (screenshots: Screenshot[] = []) { | |
export function displayVideoCompressionProgress (opts: { videoName: string, videoCompression: number | false }) { | ||
console.log('') | ||
|
||
terminal.header('Video', { | ||
color: ['cyan'], | ||
}) | ||
|
||
console.log('') | ||
|
||
const table = terminal.table({ | ||
colWidths: [3, 21, 76], | ||
colAligns: ['left', 'left', 'left'], | ||
|
@@ -534,12 +528,6 @@ export function displayVideoCompressionProgress (opts: { videoName: string, vide | |
]) | ||
|
||
console.log(table.toString()) | ||
|
||
console.log('') | ||
|
||
console.log(` - Video output: ${formatPath(opts.videoName, undefined, 'cyan')}`) | ||
|
||
console.log('') | ||
} | ||
|
||
if (Date.now() - progress > throttle) { | ||
|
@@ -553,3 +541,21 @@ export function displayVideoCompressionProgress (opts: { videoName: string, vide | |
}, | ||
} | ||
} | ||
|
||
export const printVideoHeader = () => { | ||
console.log('') | ||
|
||
terminal.header('Video', { | ||
color: ['cyan'], | ||
}) | ||
} | ||
|
||
export const printVideoPath = (videoName?: string) => { | ||
if (videoName !== undefined) { | ||
console.log('') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are these just page breaks? could you condense this to a '\n' in the main console log? (mostly just curious) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pretty much just page breaks. We might be able to get these to |
||
|
||
console.log(` - Video output: ${formatPath(videoName, undefined, 'cyan')}`) | ||
|
||
console.log('') | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in what cases can video name be optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure but wanted to be safe here and make sure we don't print if its absent