Skip to content

Commit ffeb309

Browse files
committed
Update init info messages
1 parent 8ce4a3f commit ffeb309

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/config/Init.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "Init.hpp"
22

3+
#include <string>
4+
35
#include "AConnection.hpp"
46
#include "ListenSocket.hpp"
57
#include "Log.hpp"
@@ -68,8 +70,8 @@ void Init::initMimeTypes(Context& context) {
6870
}
6971
context.removeContext("types");
7072
VirtualHost::setMimeTypes(types);
71-
accessLog_g.write(
72-
"Mime types loaded for " + toString(types.size()) + " extensions", INFO);
73+
accessLog_g.write("Number of mime types loaded: " + toString(types.size()),
74+
INFO);
7375
}
7476

7577
void Init::initVirtualHosts(Context& context) {
@@ -82,7 +84,7 @@ void Init::initVirtualHosts(Context& context) {
8284
VirtualHost::add(VirtualHost(serverContexts[i]));
8385
}
8486
size_t size = VirtualHost::getVirtualHosts().size();
85-
accessLog_g.write(toString(size) + " virtual hosts loaded", INFO);
87+
accessLog_g.write("Number of virtual hosts loaded: " + toString(size), INFO);
8688
}
8789

8890
void Init::initAConnection(Context& context) {
@@ -117,5 +119,5 @@ void Init::initPoll() {
117119
++sockets;
118120
}
119121
}
120-
accessLog_g.write("Number of sockets: " + toString(sockets), INFO);
122+
accessLog_g.write("Number of sockets created: " + toString(sockets), INFO);
121123
}

0 commit comments

Comments
 (0)