summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af1a821)
raw | patch | inline | side by side (parent: af1a821)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Jul 2008 09:37:09 +0000 (09:37 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Jul 2008 09:37:09 +0000 (09:37 +0000) |
* correct DEBUG/ERROR status in log line
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11725 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11725 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 120be07348b44cd0d7747059ad892a50cd3ef64d..8944c1a0aa276898643bd8e0cfac20838ec9f375 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
@@ -1102,13 +1102,12 @@ daemon_log("INFO: gosa-si-client mac address detected: $client_mac_address", 1);
# import events
my ($error, $result, $tmp_hash) = &import_events($event_dir);
$event_hash = $tmp_hash;
-if ($error == 0) {
- foreach my $log_line (@$result) {
- daemon_log("DEBUG: $log_line", 7);
- }
-} else {
- foreach my $log_line (@$result) {
- daemon_log("ERROR: $log_line", 1);
+
+foreach my $log_line (@$result) {
+ if ($log_line =~ / succeed: /) {
+ &main::daemon_log("0 DEBUG: $log_line", 7);
+ } else {
+ &main::daemon_log("0 ERROR: $log_line", 1);
}
}
index dfd104a05b3a42efed03ceaf2a2ef7c4d6b6f05f..b7d87a42d33158e1cdc67a9976c965330b3ff315 100644 (file)
# import local events
my ($error, $result, $event_hash) = &import_events($event_dir);
-if ($error == 0) {
- foreach my $log_line (@$result) {
+
+foreach my $log_line (@$result) {
+ if ($log_line =~ / succeed: /) {
&main::daemon_log("0 DEBUG: ClientPackages - $log_line", 7);
- }
-} else {
- foreach my $log_line (@$result) {
+ } else {
&main::daemon_log("0 ERROR: ClientPackages - $log_line", 1);
}
-
}
# Unit tag can be defined in config
index 5f6b4657ba4edc65801888fd70498656cc1704b3..5791a318eb9fd1d4392f6e43b2da8793fc700782 100644 (file)
# import local events
my ($error, $result, $event_hash) = &import_events($event_dir);
-if ($error == 0) {
- foreach my $log_line (@$result) {
+
+foreach my $log_line (@$result) {
+ if ($log_line =~ / succeed: /) {
&main::daemon_log("0 DEBUG: GosaPackages - $log_line", 7);
- }
-} else {
- foreach my $log_line (@$result) {
+ } else {
&main::daemon_log("0 ERROR: GosaPackages - $log_line", 1);
}
}
index b33a4987953a2882324e6de02cf92f50cc7757d2..ca0a1c8b70ce79663b509659f291c360005be489 100644 (file)
# import local events
my ($error, $result, $event_hash) = &import_events($event_dir);
-if ($error == 0) {
- foreach my $log_line (@$result) {
+foreach my $log_line (@$result) {
+ if ($log_line =~ / succeed: /) {
&main::daemon_log("0 DEBUG: ServerPackages - $log_line", 7);
- }
-} else {
- foreach my $log_line (@$result) {
+ } else {
&main::daemon_log("0 ERROR: ServerPackages - $log_line", 1);
}
}