mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
Merge pull request #435 from Bond-009/ffmpeglogs
Reduce log spam from ffmpeg info
This commit is contained in:
commit
0a715f9196
@ -51,7 +51,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.LogInformation("ffmpeg info: {0}", output);
|
_logger.LogDebug("ffmpeg output: {Output}", output);
|
||||||
|
|
||||||
if (output.IndexOf("Libav developers", StringComparison.OrdinalIgnoreCase) != -1)
|
if (output.IndexOf("Libav developers", StringComparison.OrdinalIgnoreCase) != -1)
|
||||||
{
|
{
|
||||||
@ -160,10 +160,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
Arguments = arguments,
|
Arguments = arguments,
|
||||||
IsHidden = true,
|
IsHidden = true,
|
||||||
ErrorDialog = false,
|
ErrorDialog = false,
|
||||||
RedirectStandardOutput = true
|
RedirectStandardOutput = true,
|
||||||
|
// ffmpeg uses stderr to log info, don't show this
|
||||||
|
RedirectStandardError = true
|
||||||
});
|
});
|
||||||
|
|
||||||
_logger.LogInformation("Running {Path} {Arguments}", path, arguments);
|
_logger.LogDebug("Running {Path} {Arguments}", path, arguments);
|
||||||
|
|
||||||
using (process)
|
using (process)
|
||||||
{
|
{
|
||||||
@ -175,7 +177,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
_logger.LogInformation("Killing process {path} {arguments}", path, arguments);
|
_logger.LogWarning("Killing process {Path} {Arguments}", path, arguments);
|
||||||
|
|
||||||
// Hate having to do this
|
// Hate having to do this
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user