lib/lolcommits/plugins/lolsrv.rb in lolcommits-0.5.3 vs lib/lolcommits/plugins/lolsrv.rb in lolcommits-0.5.4

- old
+ new

@@ -1,19 +1,15 @@ # -*- encoding : utf-8 -*- require 'rest_client' require 'pp' require 'json' -require 'logger' module Lolcommits class Lolsrv < Plugin def initialize(runner) super self.options << 'server' - if self.runner - @logger = Logger.new(File.new(self.runner.config.loldir + '/lolsrv.log', 'a+')) - end end def run return unless valid_configuration? fork { sync } @@ -61,11 +57,10 @@ end end def log_error(e, message) debug message - @logger.info message - @logger.info e.backtrace + debug e.backtrace end def self.name 'lolsrv' end