added syslog errors
This commit is contained in:
1 parent
b3736a5124
commit
fb961af71c
9 files changed
+65
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include "auth.hpp"
|
||||
#include <jwt-cpp/jwt.h>
|
||||
#include "../includes.hpp"
|
||||
#include <syslog.h>
|
||||
|
||||
// function for verify tokens
|
||||
bool verify_auth(const std::string &token) {
|
||||
@@ -17,6 +18,7 @@ bool verify_auth(const std::string &token) {
|
||||
return true;
|
||||
} catch (const std::system_error &e) {
|
||||
std::cout << "Verification error: " << e.what() << std::endl;
|
||||
syslog(LOG_ERR, "token verification error");
|
||||
return false;
|
||||
}
|
||||
catch (...) {
|
||||
|
||||
Reference in new issue
Block a user