X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=markpool.cpp;h=b3b6a1c0a7594b79633ceb348da7e2a15e2f6b8c;hp=196952ec8bd20f2da27f99150af613c8e3cf51cb;hb=5cd46e39b4063d94f6dc559ae350beeb8406a8f9;hpb=462cb16514a2b691ae4d4b76125b42fda83df712 diff --git a/markpool.cpp b/markpool.cpp index 196952e..b3b6a1c 100644 --- a/markpool.cpp +++ b/markpool.cpp @@ -1,3 +1,4 @@ +#include "log.h" #include "markpool.h" #include "mutexlock.h" #include @@ -22,9 +23,9 @@ int MarkPool::get_mark() { MutexLock lock(&mutex); if (free_marks.empty()) { - fprintf(stderr, "WARNING: Out of free marks in mark pool %d-%d, session will not be marked.\n", - start, end); - fprintf(stderr, " To fix, increase the pool size and HUP the server.\n"); + log(WARNING, "Out of free marks in mark pool %d-%d, session will not be marked. " + "To fix, increase the pool size and HUP the server.", + start, end); return 0; } int mark = free_marks.front();