diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-12-19 17:40:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-19 17:40:34 +0100 |
commit | f66507e072e7dc80a1e69ce1bac73bdcd780b626 (patch) | |
tree | ff2bb9d6e32d4d4f2b1bf355bf76889a77d08776 /modules | |
parent | a714e1a4c77dc8236d7dfa6628ba40ddc534d1a4 (diff) | |
parent | 7368a0e0f08ca60a8c503c2113bb5aa56fbc4208 (diff) |
Merge pull request #14833 from PJB3005/17-12-19-fix_mono_fatal_logs
Fix fatal mono logs not getting logged to disk.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_log.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/gd_mono_log.cpp b/modules/mono/mono_gd/gd_mono_log.cpp index e473348897..e8aea8624d 100644 --- a/modules/mono/mono_gd/gd_mono_log.cpp +++ b/modules/mono/mono_gd/gd_mono_log.cpp @@ -70,7 +70,9 @@ void gdmono_MonoLogCallback(const char *log_domain, const char *log_level, const } if (fatal) { - ERR_PRINTS("Mono: FALTAL ERROR, ABORTING! Logfile: " + GDMonoLog::get_singleton()->get_log_file_path() + "\n"); + ERR_PRINTS("Mono: FATAL ERROR, ABORTING! Logfile: " + GDMonoLog::get_singleton()->get_log_file_path() + "\n"); + // If we were to abort without flushing, the log wouldn't get written. + f->flush(); abort(); } } |