diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-02-25 18:56:07 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-02-25 18:56:07 +0000 |
commit | d63936c2f7959d6fff995ec10c91e24266b8c5d7 (patch) | |
tree | 928d4eb0402f82d7f25d4f4008dc3698881e88c9 /lib/raidfile/RaidFileRead.h | |
parent | ca4e4572ca51cce442add6107a59075f76b3aecd (diff) |
Reduce test output noise by hiding some error messages in tests.
Should make the Travis logs shorter and more readable.
Diffstat (limited to 'lib/raidfile/RaidFileRead.h')
-rw-r--r-- | lib/raidfile/RaidFileRead.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/raidfile/RaidFileRead.h b/lib/raidfile/RaidFileRead.h index 570443c8..a3c792d0 100644 --- a/lib/raidfile/RaidFileRead.h +++ b/lib/raidfile/RaidFileRead.h @@ -16,9 +16,17 @@ #include <vector> #include "IOStream.h" +#include "Logging.h" class RaidFileDiscSet; +class RaidFileReadCategory : public Log::Category +{ + public: + RaidFileReadCategory(const std::string& name) + : Log::Category(std::string("RaidFileRead/") + name) + { } +}; // -------------------------------------------------------------------------- // @@ -66,6 +74,10 @@ public: typedef int64_t FileSizeType; + static const RaidFileReadCategory OPEN_IN_RECOVERY; + static const RaidFileReadCategory IO_ERROR; + static const RaidFileReadCategory RECOVERING_IO_ERROR; + protected: int mSetNumber; std::string mFilename; |