downloader: set default logfile name

This way we always get a libdivecomputer log.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-12-02 16:27:35 -08:00
parent df9a52d857
commit 409a8c7223

View file

@ -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();