~ubuntu-branches/ubuntu/trusty/zentyal-core/trusty

« back to all changes in this revision

Viewing changes to src/EBox/Event/Watcher/Log.pm

  • Committer: Package Import Robot
  • Author(s): Jorge Salamero Sanz
  • Date: 2012-08-28 10:03:33 UTC
  • Revision ID: package-import@ubuntu.com-20120828100333-oz3n5kpav4z0tl27
Tags: 2.3.21+quantal1
New upstream release for Quantal

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
use EBox::Exceptions::Internal;
32
32
use EBox::Gettext;
33
33
use EBox::Global;
34
 
use EBox::Model::ModelManager;
 
34
use EBox::Model::Manager;
35
35
 
36
36
# Dependencies
37
37
use POSIX;
247
247
        # Remove timestamp field from row to add the source category
248
248
        my $msg = $helperMod->humanEventMessage($row);
249
249
        delete($row->{timestamp});
250
 
        my @keys = sort { $a <=> $b } keys(%{$row});
251
 
        my @values = map { $row->{$_} } @keys;
252
250
        push(@retEvents, new EBox::Event(
253
251
                                         message     => $msg,
254
252
                                         level       => 'info',
255
 
                                         source  => "Log observer-$loggerName",
256
 
                                         compMessage => join('_', @values),
 
253
                                         source      => "log-observer-$loggerName",
 
254
                                         additional  => $row,
257
255
                                        )
258
256
            );
259
257
    }