Skip to content

Commit 8b90995

Browse files
committed
Change log message levels from critical
1 parent 497b03a commit 8b90995

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/conf.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,10 +761,10 @@ void cls_config::edit_width(std::string &parm, enum PARM_ACT pact)
761761
if ((parm_in < 64) || (parm_in > 9999)) {
762762
MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO, _("Invalid width %d"),parm_in);
763763
} else if (parm_in % 8) {
764-
MOTION_LOG(CRT, TYPE_NETCAM, NO_ERRNO
764+
MOTION_LOG(NTC, TYPE_NETCAM, NO_ERRNO
765765
,_("Image width (%d) requested is not modulo 8."), parm_in);
766766
parm_in = parm_in - (parm_in % 8) + 8;
767-
MOTION_LOG(CRT, TYPE_NETCAM, NO_ERRNO
767+
MOTION_LOG(NTC, TYPE_NETCAM, NO_ERRNO
768768
,_("Adjusting width to next higher multiple of 8 (%d)."), parm_in);
769769
width = parm_in;
770770
} else {
@@ -787,10 +787,10 @@ void cls_config::edit_height(std::string &parm, enum PARM_ACT pact)
787787
if ((parm_in < 64) || (parm_in > 9999)) {
788788
MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO, _("Invalid height %d"),parm_in);
789789
} else if (parm_in % 8) {
790-
MOTION_LOG(CRT, TYPE_NETCAM, NO_ERRNO
790+
MOTION_LOG(NTC, TYPE_NETCAM, NO_ERRNO
791791
,_("Image height (%d) requested is not modulo 8."), parm_in);
792792
parm_in = parm_in - (parm_in % 8) + 8;
793-
MOTION_LOG(CRT, TYPE_NETCAM, NO_ERRNO
793+
MOTION_LOG(NTC, TYPE_NETCAM, NO_ERRNO
794794
,_("Adjusting height to next higher multiple of 8 (%d)."), parm_in);
795795
height = parm_in;
796796
} else {

src/video_convert.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ int cls_convert::mjpegtoyuv420p(u_char *img_dst, u_char *img_src, int size)
452452

453453
ptr_buffer =(u_char*) memmem(img_src, (uint)size, "\xff\xd8", 2);
454454
if (ptr_buffer == NULL) {
455-
MOTION_LOG(CRT, TYPE_VIDEO, NO_ERRNO,_("Corrupt image ... continue"));
455+
MOTION_LOG(INF, TYPE_VIDEO, NO_ERRNO,_("Corrupt image ... continue"));
456456
return 1;
457457
}
458458
/**
@@ -476,7 +476,7 @@ int cls_convert::mjpegtoyuv420p(u_char *img_dst, u_char *img_src, int size)
476476
ret = jpgutl_decode_jpeg(img_src,size, (uint)width, (uint)height, img_dst);
477477

478478
if (ret == -1) {
479-
MOTION_LOG(CRT, TYPE_VIDEO, NO_ERRNO,_("Corrupt image ... continue"));
479+
MOTION_LOG(INF, TYPE_VIDEO, NO_ERRNO,_("Corrupt image ... continue"));
480480
ret = 1;
481481
}
482482
return ret;

src/video_loopback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static int vlp_open_vidpipe(void)
7373
int retcd;
7474

7575
if ((dir = opendir(prefix)) == NULL) {
76-
MOTION_LOG(CRT, TYPE_VIDEO, SHOW_ERRNO,_("Failed to open '%s'"), prefix);
76+
MOTION_LOG(ERR, TYPE_VIDEO, SHOW_ERRNO,_("Failed to open '%s'"), prefix);
7777
return -1;
7878
}
7979

0 commit comments

Comments
 (0)