diff --git a/logging/logging.h b/logging/logging.h index 178addcc3..585111569 100644 --- a/logging/logging.h +++ b/logging/logging.h @@ -19,9 +19,9 @@ inline const char* RocksLogShorterFileName(const char* file) { - // 15 is the length of "logging/logging.h". + // 18 is the length of "logging/logging.h". // If the name of this file changed, please change this number, too. - return file + (sizeof(__FILE__) > 15 ? sizeof(__FILE__) - 15 : 0); + return file + (sizeof(__FILE__) > 18 ? sizeof(__FILE__) - 18 : 0); } // Don't inclide file/line info in HEADER level