wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit 9a7505f71cdfc8804939fbf24e0c5925d77dbf2a
parent 659f9bfe8c9023c2fefe3068e67f461c7b66f148
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Tue, 12 Sep 2006 18:52:28 -0700

[project @ 6b65377fdfe9f11caf37631e4d7d4629bca204aa]

[project @ 79]
up  log msg invocation

Diffstat:
wmiirc | 2+-
wmiirc-config.rb | 9+++------
2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/wmiirc b/wmiirc @@ -28,7 +28,7 @@ begin rescue => e LOG.error e - LOG.info "#{__FILE__}: resuming from error" + LOG.info(__FILE__) {"resuming from error"} retry rescue Exception => e diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -25,16 +25,13 @@ FS = Wmii.fs ## WM startup -LOG.info "instance #{$$} is starting" +LOG.info($$) {"starting up"} FS.event = "Start #{__FILE__}\n" ## executable programs -# names of external programs PROGRAM_MENU = find_programs( ENV['PATH'].squeeze(':').split(':') ) - -# names of internal actions ACTION_MENU = find_programs('~/dry/apps/wmii/etc/wmii-3', File.dirname(__FILE__)) @@ -392,7 +389,7 @@ begin case type when 'Start' if arg == __FILE__ - LOG.info "instance #{$$} is exiting: another is starting" + LOG.info($$) {"exiting because another is starting"} exit end @@ -428,6 +425,6 @@ begin end end rescue EOFError - LOG.warn "instance #{$$} is exiting: wmii has been terminated" + LOG.warn($$) {"exiting because wmii has been terminated"} exit 1 end