22 lines
716 B
Diff
22 lines
716 B
Diff
|
diff --git a/nix/store/mkcc7j9r5a9cb45zvb25fa4vgks10z21-source/es-core/src/Log.cpp b/./es-core/src/Log.cpp
|
||
|
index bcae384..5b8426a 100644
|
||
|
--- a/nix/store/mkcc7j9r5a9cb45zvb25fa4vgks10z21-source/es-core/src/Log.cpp
|
||
|
+++ b/./es-core/src/Log.cpp
|
||
|
@@ -53,6 +53,7 @@ void Log::flush()
|
||
|
|
||
|
void Log::close()
|
||
|
{
|
||
|
+ if(file == NULL) return;
|
||
|
fclose(file);
|
||
|
file = NULL;
|
||
|
}
|
||
|
@@ -69,7 +70,7 @@ Log::~Log()
|
||
|
if(getOutput() == NULL)
|
||
|
{
|
||
|
// not open yet, print to stdout
|
||
|
- std::cerr << "ERROR - tried to write to log file before it was open! The following won't be logged:\n";
|
||
|
+ // std::cerr << "ERROR - tried to write to log file before it was open! The following won't be logged:\n";
|
||
|
std::cerr << os.str();
|
||
|
return;
|
||
|
}
|