drobne opravy

pull/1/head
Michal 2025-02-13 18:29:11 +01:00
parent 9bbbcb7e9f
commit ca6161b505
3 changed files with 61 additions and 25 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.log

84
log.log
View File

@ -1,24 +1,60 @@
10.02.25 20:29:05 I --------------------------------------------- 13.02.25 18:7:16 I ---------------------------------------------
10.02.25 20:29:05 I jNet Server 13.02.25 18:7:16 I jNet Server
10.02.25 20:29:05 I Version: 1 (Sat Feb 08 19:21:37 CET 2025) 13.02.25 18:7:16 I Version: 1 (Thu Feb 13 09:04:35 CET 2025)
10.02.25 20:29:05 I --------------------------------------------- 13.02.25 18:7:16 I ---------------------------------------------
10.02.25 20:29:05 I 13.02.25 18:7:16 I
10.02.25 20:29:05 I Loading config ... 13.02.25 18:7:16 I Loading config ...
10.02.25 20:29:05 I successfully 13.02.25 18:7:16 I successfully
10.02.25 20:29:05 D Debug mode on 13.02.25 18:7:16 D Debug mode on
10.02.25 20:29:05 I Connecting to a selected database ... 13.02.25 18:7:16 I Connecting to a selected database ...
10.02.25 20:29:06 I successfully 13.02.25 18:7:16 I successfully
10.02.25 20:29:06 I Loading user list ... 13.02.25 18:7:16 I Loading user list ...
10.02.25 20:29:06 I load 2 user(s) 13.02.25 18:7:16 I load 2 user(s)
10.02.25 20:29:06 I Loading map list ... 13.02.25 18:7:16 I Loading map list ...
10.02.25 20:29:06 I load 6 map(s) 13.02.25 18:7:16 I load 6 map(s)
10.02.25 20:29:06 I Loading object list ... 13.02.25 18:7:16 I Loading object list ...
10.02.25 20:29:06 I load 7 object(s) 13.02.25 18:7:17 I load 8 object(s)
10.02.25 20:29:06 I Loading object type ... 13.02.25 18:7:17 I Loading object type ...
10.02.25 20:29:06 I load 12 type(s) 13.02.25 18:7:17 I load 12 type(s)
10.02.25 20:29:06 I Loading SNMP profile ... 13.02.25 18:7:17 I Loading SNMP profile ...
10.02.25 20:29:06 I load 2 profile(s) 13.02.25 18:7:17 I load 2 profile(s)
10.02.25 20:29:06 I Loading events ... 13.02.25 18:7:17 I Loading events ...
10.02.25 20:29:06 I load 0 event(s) 13.02.25 18:7:17 I load 30 event(s)
10.02.25 20:29:06 I Ping probe start 13.02.25 18:7:17 I Ping probe start
10.02.25 20:29:06 I Server is ready and listening on port 1225 13.02.25 18:7:17 I Server is ready and listening on port 1225
13.02.25 18:7:49 D -> Message type: 1
13.02.25 18:7:49 I Authorization request send (kubernetes.docker.internal)
13.02.25 18:7:49 D <- Message type: 3
13.02.25 18:7:49 D -> Message type: 4
13.02.25 18:7:49 I User: michal logged in (kubernetes.docker.internal)
13.02.25 18:7:49 D <- Message type: 5
13.02.25 18:7:49 D <- Message type: 9
13.02.25 18:7:49 D <- For all. Message type: 7
13.02.25 18:7:49 D <- Message type: 13
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 8
13.02.25 18:7:49 D <- Message type: 11
13.02.25 18:7:49 D <- Message type: 11
13.02.25 18:7:49 D <- Message type: 100
13.02.25 18:7:49 D <- Message type: 100
13.02.25 18:7:49 D <- Message type: 100
13.02.25 18:7:49 D <- Message type: 100
13.02.25 18:7:49 D <- Message type: 100
13.02.25 18:7:49 D <- Message type: 100
13.02.25 18:7:49 D <- Message type: 14
13.02.25 18:7:49 D <- Message type: 110
13.02.25 18:7:49 D <- Message type: 107
13.02.25 18:7:49 D <- Message type: 107
13.02.25 18:8:31 D -> Message type: 105
13.02.25 18:8:31 D <- For all. Message type: 105
13.02.25 18:8:31 D <- For all. Message type: 108

View File

@ -635,7 +635,6 @@ public class Database {
try { try {
String select_query = "SELECT * FROM events WHERE object = '" + objectId + "' && type = '" + type + "' ORDER BY id DESC LIMIT 1"; String select_query = "SELECT * FROM events WHERE object = '" + objectId + "' && type = '" + type + "' ORDER BY id DESC LIMIT 1";
System.err.println(select_query);
PreparedStatement stmt = getCurrentConnection().prepareStatement(select_query); PreparedStatement stmt = getCurrentConnection().prepareStatement(select_query);
ResultSet rs = stmt.executeQuery(); ResultSet rs = stmt.executeQuery();
// Process the result // Process the result