diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-09-15 09:55:54 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-09-16 08:10:21 -0600 |
| commit | 14ae26d06b54f19f5367755ef4db0f86c03482a4 (patch) | |
| tree | d114cf1b612e595322e40addd4fffd9742c1e2a5 /layers/image.cpp | |
| parent | 967ce521d87b3e9a90114119dc816c4eb55f5a43 (diff) | |
| download | usermoji-14ae26d06b54f19f5367755ef4db0f86c03482a4.tar.xz | |
layers: Fix layer STDOUT logging
Diffstat (limited to 'layers/image.cpp')
| -rw-r--r-- | layers/image.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
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); } } |
