projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
121add4
)
use tag as identifier in url and strip path from it
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 20 Aug 2009 17:35:44 +0000
(17:35 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 20 Aug 2009 17:35:44 +0000
(17:35 +0000)
lib/PXElator/syslogd.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/syslogd.pm
b/lib/PXElator/syslogd.pm
index
fa43dcd
..
a425acd
100644
(file)
--- a/
lib/PXElator/syslogd.pm
+++ b/
lib/PXElator/syslogd.pm
@@
-48,6
+48,8
@@
sub message {
}
}
+ $log->{tag} =~ s{^/.+/([^/]+)$}{$1};
+
if ( $log->{tag} =~ m{CRON}i && $buf =~ m{^\((\w+)\) (.+) \((.+)\)$} ) {
$log->{cron} = {
user => $1,
@@
-64,7
+66,7
@@
sub message {
}
warn "log ",dump( $log );
- CouchDB::audit(
'syslog'
, $log );
+ CouchDB::audit(
$log->{tag}
, $log );
}
sub start {