Change log severity for better maintability #50

Merged
Bogdan Nagirniak merged 6 commits from Vasyl-Pidhirskyi/blender_bn:BLEN-422 into hydra-render 2023-06-05 19:46:21 +02:00
Showing only changes of commit c973614c08 - Show all commits

View File

@ -41,12 +41,12 @@ static std::string cache_image_file(Image *image,
if (BKE_image_save_options_init(&opts, main, scene_delegate->scene, image, iuser, true, false)) { if (BKE_image_save_options_init(&opts, main, scene_delegate->scene, image, iuser, true, false)) {
STRNCPY(opts.filepath, file_path.c_str()); STRNCPY(opts.filepath, file_path.c_str());
ReportList reports; ReportList reports;
if (!BKE_image_save(&reports, main, image, iuser, &opts)) { if (BKE_image_save(&reports, main, image, iuser, &opts)) {
file_path = "";
};
else {
CLOG_INFO(LOG_RENDER_HYDRA_SCENE, 1, "%s -> %s", image->id.name, file_path.c_str()); CLOG_INFO(LOG_RENDER_HYDRA_SCENE, 1, "%s -> %s", image->id.name, file_path.c_str());
}; }
else {
file_path = "";
}
} }
BKE_image_save_options_free(&opts); BKE_image_save_options_free(&opts);