From ed167c5a867226fc453a92b778dc34a45eac789f Mon Sep 17 00:00:00 2001
From: Tomas Plesnik <plesnik@ics.muni.cz>
Date: Wed, 6 Feb 2013 11:03:22 +0100
Subject: [PATCH] pridano logovani prichozi zpravy

---
 src/warden-server/lib/Warden.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/warden-server/lib/Warden.pm b/src/warden-server/lib/Warden.pm
index 77f312a..acf0052 100755
--- a/src/warden-server/lib/Warden.pm
+++ b/src/warden-server/lib/Warden.pm
@@ -221,6 +221,9 @@ sub saveNewEvent
 
   my %client = authorizeClient($alt_names, $ip, $service, $client_type, $function_name);
   if (defined %client) {
+    sendMsg("debug",
+            "Incoming event: [service: '$service', detected: '$detected', type: '$type', source_type: '$source_type', source: '$source', target_proto: '$target_proto', target_port: '$target_port', attack_scale: '$attack_scale', note: '$note', priority: '$priority', timeout: '$timeout']",
+             undef);
     if (%VALID_STRINGS) {	# check if hash is not empty - use VALIDATION HASH
       if (!(exists $VALID_STRINGS{'type'} && grep $type eq $_, @{$VALID_STRINGS{'type'}})) {
         sendMsg("err",
-- 
GitLab