From 14ae26d06b54f19f5367755ef4db0f86c03482a4 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Tue, 15 Sep 2015 09:55:54 -0600 Subject: layers: Fix layer STDOUT logging --- layers/image.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'layers/image.cpp') diff --git a/layers/image.cpp b/layers/image.cpp index 7fc5f7c8..f41a0e0d 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -86,15 +86,7 @@ static void InitImage(layer_data *data) { FILE *log_output = NULL; const char* option_str = getLayerOption("ImageLogFilename"); - if(option_str) - { - log_output = fopen(option_str, "w"); - } - if(log_output == NULL) - { - log_output = stdout; - } - + log_output = getLayerLogOutput(option_str, "Image"); layer_create_msg_callback(data->report_data, report_flags, log_callback, (void*)log_output, &data->logging_callback); } } -- cgit v1.2.3