Skip to content

Commit

Permalink
Merge pull request #686 from lukemartinlogan/master
Browse files Browse the repository at this point in the history
Make errors print to HELOG
  • Loading branch information
lukemartinlogan authored Aug 15, 2024
2 parents a95c754 + d4d1fdf commit 428e3d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions hermes_adapters/filesystem/filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion hermes_adapters/filesystem/filesystem_mdm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
4 changes: 2 additions & 2 deletions include/hermes/config_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 428e3d3

Please sign in to comment.