Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Syslog shortcut methods are standard

  • Loading branch information...
commit d5de23b93ebe992f8e943dd29a587c8bfb39a9a1 1 parent af0dda1
@purcell authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 bin/postfix-policy-whois
View
7 bin/postfix-policy-whois
@@ -7,13 +7,6 @@ PORT = 8787
require 'syslog'
$LOG = Syslog.open($0, Syslog::LOG_PID | Syslog::LOG_PERROR, Syslog::LOG_MAIL)
-class << $LOG
- %w(info err notice debug warning crit alert).each do |level|
- define_method level do |*args|
- log(Syslog.const_get("LOG_#{level.upcase}"), *args)
- end
- end
-end
require 'resolv'
require 'whois'
Please sign in to comment.
Something went wrong with that request. Please try again.