From 1f08cafffe0cb0cc1c9f246c8a14daab909c2271 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 3 Mar 2025 18:13:40 +0000 Subject: [PATCH] fix: Use string data instead of path data for fingerprint logging --- src/lib/net/SecureSocket.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/net/SecureSocket.cpp b/src/lib/net/SecureSocket.cpp index d0c7ea514..7bc622fc3 100644 --- a/src/lib/net/SecureSocket.cpp +++ b/src/lib/net/SecureSocket.cpp @@ -677,13 +677,14 @@ bool SecureSocket::verifyCertFingerprint(const deskflow::fs::path &fingerprintDb db.read(fingerprintDbPath); const bool emptyDB = db.fingerprints().empty(); + const auto &path = fingerprintDbPath.string(); if (file.good() && emptyDB) { - LOG((CLOG_ERR "failed to open trusted fingerprints file: %s", fingerprintDbPath.c_str())); + LOG((CLOG_ERR "failed to open trusted fingerprints file: %s", path.c_str())); return false; } if (!emptyDB) { - LOG((CLOG_NOTE "read %d fingerprints from %s", db.fingerprints().size(), fingerprintDbPath.c_str())); + LOG((CLOG_NOTE "read %d fingerprint(s) from file: %s", db.fingerprints().size(), path.c_str())); } if (!db.isTrusted(sha256)) {