summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.cpp b/src/server.cpp
index dbf48a7..8bcffc1 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1,8 +1,8 @@
#include "server.hpp"
+#include "log.hpp"
#include <cstring>
#include <print>
#include <sys/socket.h>
-#include "log.hpp"
CServer::CServer(uint16_t port)
: m_sockfd(Hyprutils::OS::CFileDescriptor{socket(AF_INET, SOCK_STREAM, 0)}) {
@@ -22,12 +22,12 @@ CServer::CServer(uint16_t port)
? throw std::runtime_error("Failed to bind or listen")
: std::println("Server started on port: {}", port);
- log(LOG, "Server: initialized");
+ log(LOG, "Server: initialized");
};
CServer::~CServer() {
m_sockfd.reset();
- log(SYS, "Server: bye");
+ log(SYS, "Server: bye");
}
Hyprutils::OS::CFileDescriptor *CServer::getSocket() {