/[pupa]/bugcomm/lib/bugcomm/utils.rb
ViewVC logotype

Diff of /bugcomm/lib/bugcomm/utils.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by okuji, Mon Oct 14 03:17:06 2002 UTC revision 1.5 by okuji, Sun Oct 27 20:21:39 2002 UTC
# Line 35  module BugCommunicator Line 35  module BugCommunicator
35      if @@log.respond_to?(:err)      if @@log.respond_to?(:err)
36        @@log.err('%s', str)        @@log.err('%s', str)
37      elsif @@log.respond_to?(:puts)      elsif @@log.respond_to?(:puts)
38        @@log.puts("bugcommd [#{Process.pid}]: error: #{str}")        @@log.puts("bugcommd [#{Process.pid}] [#{Time.now}]: error: #{str}")
39      end      end
40    end    end
41    module_function :error    module_function :error
# Line 46  module BugCommunicator Line 46  module BugCommunicator
46        if @@log.respond_to?(:info)        if @@log.respond_to?(:info)
47          @@log.info('%s', str)          @@log.info('%s', str)
48        elsif @@log.respond_to?(:puts)        elsif @@log.respond_to?(:puts)
49          @@log.puts("bugcommd [#{Process.pid}]: info: #{str}")          @@log.puts("bugcommd [#{Process.pid}] [#{Time.now}]: info: #{str}")
50        end        end
51      end      end
52    end    end
# Line 58  module BugCommunicator Line 58  module BugCommunicator
58        if @@log.respond_to?(:debug)        if @@log.respond_to?(:debug)
59          @@log.debug('%s', str)          @@log.debug('%s', str)
60        elsif @@log.respond_to?(:puts)        elsif @@log.respond_to?(:puts)
61          @@log.puts("bugcommd [#{Process.pid}]: debug: #{str}")          @@log.puts("bugcommd [#{Process.pid}] [#{Time.now}]: debug: #{str}")
62        end        end
63      end      end
64    end    end

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26