mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-27 10:38:48 +03:00
Fixed issue 480
This commit is contained in:
parent
70cfc74ce1
commit
b88d0fb5fd
@ -169,7 +169,9 @@ CLog::print(const char* file, int line, const char* fmt, ...)
|
||||
}
|
||||
|
||||
// print the prefix to the buffer. leave space for priority label.
|
||||
if (file != NULL) {
|
||||
// do not prefix time and file for kPRINT (CLOG_PRINT)
|
||||
if ((file != NULL) && (priority != kPRINT)) {
|
||||
|
||||
char message[2048];
|
||||
struct tm *tm;
|
||||
char tmp[220];
|
||||
|
@ -40,6 +40,7 @@ public:
|
||||
The logging priority levels in order of highest to lowest priority.
|
||||
*/
|
||||
enum ELevel {
|
||||
kPRINT = -1, //!< For print only (no file or time)
|
||||
kFATAL, //!< For fatal errors
|
||||
kERROR, //!< For serious errors
|
||||
kWARNING, //!< For minor errors and warnings
|
||||
|
Loading…
Reference in New Issue
Block a user