unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 0920244f785419d99d237c498754f0fbbf6f417e 1118 bytes (raw)
name: gnu/packages/patches/esmini-no-clutter-log.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Don't clutter /tmp with logs.

---
 EnvironmentSimulator/Modules/CommonMini/CommonMini.cpp | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/EnvironmentSimulator/Modules/CommonMini/CommonMini.cpp b/EnvironmentSimulator/Modules/CommonMini/CommonMini.cpp
index 56c655dc..2750f5a6 100644
--- a/EnvironmentSimulator/Modules/CommonMini/CommonMini.cpp
+++ b/EnvironmentSimulator/Modules/CommonMini/CommonMini.cpp
@@ -1013,14 +1013,8 @@ void Logger::OpenLogfile(std::string filename)
 		file_.open(filename.c_str());
 		if (file_.fail())
 		{
-			const char* filename_tmp = std::tmpnam(NULL);
-			printf("Cannot open log file: %s in working directory. Trying system tmp-file: %s\n",
-				SE_Env::Inst().GetLogFilePath().c_str(), filename_tmp);
-			file_.open(filename_tmp);
-			if (file_.fail())
-			{
-				printf("Also failed to open log file: %s. Continue without logfile, still logging to console.\n", filename_tmp);
-			}
+			printf("Cannot open log file: %s in working directory. Continuing without logfile, still logging to console.\n",
+				filename.c_str());
 		}
 	}
 #endif
-- 
2.38.1


debug log:

solving 0920244f78 ...
found 0920244f78 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).