21 lines
1.1 KiB
Diff
21 lines
1.1 KiB
Diff
Index: cryfs-0.10.2/src/cryfs-cli/Cli.cpp
|
|
===================================================================
|
|
--- cryfs-0.10.2.orig/src/cryfs-cli/Cli.cpp
|
|
+++ cryfs-0.10.2/src/cryfs-cli/Cli.cpp
|
|
@@ -27,6 +27,7 @@
|
|
#include "Environment.h"
|
|
#include <cryfs/CryfsException.h>
|
|
#include <cpp-utils/thread/debugging.h>
|
|
+#include <spdlog/sinks/basic_file_sink.h>
|
|
|
|
//TODO Many functions accessing the ProgramOptions object. Factor out into class that stores it as a member.
|
|
//TODO Factor out class handling askPassword
|
|
@@ -310,7 +311,7 @@ namespace cryfs_cli {
|
|
//TODO Test that --logfile parameter works. Should be: file if specified, otherwise stderr if foreground, else syslog.
|
|
if (options.logFile() != none) {
|
|
cpputils::logging::setLogger(
|
|
- spdlog::create<spdlog::sinks::simple_file_sink<std::mutex>>("cryfs", options.logFile()->string()));
|
|
+ spdlog::create<spdlog::sinks::basic_file_sink<std::mutex>>("cryfs", options.logFile()->string()));
|
|
} else if (options.foreground()) {
|
|
cpputils::logging::setLogger(spdlog::stderr_logger_mt("cryfs"));
|
|
} else {
|