summaryrefslogtreecommitdiffstats
path: root/subsurface-downloader-main.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-02 16:27:35 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-03 13:26:55 -0800
commit409a8c7223d051254d79652f628de7b202381164 (patch)
treea58eb913bef35c845e6a857338c2c9d02e8cc880 /subsurface-downloader-main.cpp
parentdf9a52d857e8d39e9dea88b5eb478c11d42a5881 (diff)
downloadsubsurface-409a8c7223d051254d79652f628de7b202381164.tar.gz
downloader: set default logfile name
This way we always get a libdivecomputer log. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-downloader-main.cpp')
-rw-r--r--subsurface-downloader-main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/subsurface-downloader-main.cpp b/subsurface-downloader-main.cpp
index f5e6abaae..db88e1783 100644
--- a/subsurface-downloader-main.cpp
+++ b/subsurface-downloader-main.cpp
@@ -11,6 +11,7 @@
#include "core/subsurface-string.h"
#include "core/file.h"
#include "core/trip.h"
+#inclide "core/libdivecomputer.h"
#include <QApplication>
#include <QLoggingCategory>
@@ -44,7 +45,8 @@ int main(int argc, char **argv)
struct device_table devices;
struct filter_preset_table presets;
-
+ // set a default logfile name for libdivecomputer so we always get a logfile
+ logfile_name = "subsurface-downloader.log";
const char *default_directory = system_default_directory();
const char *default_filename = system_default_filename();