From d4d1fdf6775750260241d6c0cd1b432de202dff7 Mon Sep 17 00:00:00 2001 From: lukemartinlogan Date: Thu, 15 Aug 2024 16:03:02 -0500 Subject: [PATCH] Make errors print to HELOG --- hermes_adapters/filesystem/filesystem.h | 6 +++--- hermes_adapters/filesystem/filesystem_mdm.h | 2 +- include/hermes/config_client.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hermes_adapters/filesystem/filesystem.h b/hermes_adapters/filesystem/filesystem.h index 2d73cc981..a0eea9e7d 100644 --- a/hermes_adapters/filesystem/filesystem.h +++ b/hermes_adapters/filesystem/filesystem.h @@ -125,7 +125,7 @@ class Filesystem : public FilesystemIoClient { exists->UpdateTime(); } } catch (const std::exception &e) { - HILOG(kError, "Error opening file: {}", e.what()) + HELOG(kError, "Error opening file: {}", e.what()) f.status_ = false; } } @@ -459,7 +459,7 @@ class Filesystem : public FilesystemIoClient { } return ret; } catch (const std::exception &e) { - HILOG(kError, "Error removing path: {}", e.what()) + HELOG(kError, "Error removing path: {}", e.what()) return -1; } } @@ -714,7 +714,7 @@ class Filesystem : public FilesystemIoClient { // Assume it is excluded return false; } catch (const std::exception &e) { - HILOG(kError, "Error checking path: {}", e.what()) + HELOG(kError, "Error checking path: {}", e.what()) return false; } } diff --git a/hermes_adapters/filesystem/filesystem_mdm.h b/hermes_adapters/filesystem/filesystem_mdm.h index 1cc870f4a..539516e8a 100644 --- a/hermes_adapters/filesystem/filesystem_mdm.h +++ b/hermes_adapters/filesystem/filesystem_mdm.h @@ -133,7 +133,7 @@ class MetadataManager { else return &iter->second; } catch(const std::exception &e) { - HILOG(kError, "Error finding path: {}", e.what()) + HELOG(kError, "Error finding path: {}", e.what()) return nullptr; } } diff --git a/include/hermes/config_client.h b/include/hermes/config_client.h index 5d512f6f6..bf6d8a635 100644 --- a/include/hermes/config_client.h +++ b/include/hermes/config_client.h @@ -129,7 +129,7 @@ class ClientConfig : public BaseConfig { return a.path_.size() > b.path_.size(); }); } catch (const std::exception &e) { - HILOG(kError, "Error checking path: {}", e.what()) + HELOG(kError, "Error checking path: {}", e.what()) } } @@ -232,7 +232,7 @@ class ClientConfig : public BaseConfig { } SetAdapterConfig(path, conf); } catch (const std::exception &e) { - HILOG(kError, "Error checking path: {}", e.what()) + HELOG(kError, "Error checking path: {}", e.what()) return; } }