diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-26 14:05:29 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-26 14:05:29 -0500 |
commit | 2adce1795211fd0a42c3b4e03ab35a90bb01bccf (patch) | |
tree | 7fda2f874f0653e4c74edaaf1547fe9802b2005a /src/logger.cpp | |
parent | 7fc0e0f50ae961efbe0cac1032b03a42d41d87d5 (diff) | |
download | lingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.tar.gz lingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.tar.bz2 lingo-ap-tracker-2adce1795211fd0a42c3b4e03ab35a90bb01bccf.zip |
Stop relying on correctly set working directory
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index ccb721a..4b722c8 100644 --- a/src/logger.cpp +++ b/src/logger.cpp | |||
@@ -4,11 +4,13 @@ | |||
4 | #include <fstream> | 4 | #include <fstream> |
5 | #include <mutex> | 5 | #include <mutex> |
6 | 6 | ||
7 | #include "global.h" | ||
8 | |||
7 | namespace { | 9 | namespace { |
8 | 10 | ||
9 | class Logger { | 11 | class Logger { |
10 | public: | 12 | public: |
11 | Logger() : logfile_("debug.log") {} | 13 | Logger() : logfile_(GetAbsolutePath("debug.log")) {} |
12 | 14 | ||
13 | void LogLine(const std::string& text) { | 15 | void LogLine(const std::string& text) { |
14 | std::lock_guard guard(file_mutex_); | 16 | std::lock_guard guard(file_mutex_); |