Be more consistent about log levels

LOG_ERROR should be used in places where though recoverable (or at least
something that can be handled safely), was unexpected, and may affect
the user/application.

LOG_WARNING should be used in places where it's not entirely unexpected,
is recoverable, and doesn't really affect the user/application.
This commit is contained in:
jp9000
2014-02-28 20:02:29 -07:00
parent 4e10eeda09
commit 771eac6015
15 changed files with 120 additions and 91 deletions

View File

@@ -95,8 +95,8 @@ int video_scaler_create(video_scaler_t *scaler_out,
dst->width, dst->height, format_dst,
scale_type, NULL, NULL, NULL);
if (!scaler->swscale) {
blog(LOG_WARNING, "video_scaler_create: Could not create "
"swscale");
blog(LOG_ERROR, "video_scaler_create: Could not create "
"swscale");
goto fail;
}
@@ -137,7 +137,7 @@ bool video_scaler_scale(video_scaler_t scaler,
0, scaler->src_height,
output, (const int *)out_linesize);
if (ret <= 0) {
blog(LOG_DEBUG, "video_scaler_scale: sws_scale failed: %d",
blog(LOG_ERROR, "video_scaler_scale: sws_scale failed: %d",
ret);
return false;
}