sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 044fe53ec88df93fab46de9eefd12e55ba8d7c64
parent 94407cd41003ed685b454aebd3131096424da393
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Sun, 21 Mar 2010 23:31:52 -0700

add log file

Diffstat:
M lib/sup.rb | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
@@ -51,6 +51,7 @@ module Redwood
   SUICIDE_FN = File.join(BASE_DIR, "please-kill-yourself")
   HOOK_DIR   = File.join(BASE_DIR, "hooks")
   SEARCH_FN  = File.join(BASE_DIR, "searches.txt")
+  LOG_FN     = File.join(BASE_DIR, "log")
 
   YAML_DOMAIN = "masanjin.net"
   YAML_DATE = "2006-10-01"
@@ -286,6 +287,7 @@ Redwood::HookManager.init Redwood::HOOK_DIR
 ## everything we need to get logging working
 require "sup/logger"
 Redwood::Logger.init.add_sink $stderr
+Redwood::Logger.add_sink File.open(Redwood::LOG_FN, 'a')
 include Redwood::LogsStuff
 
 ## determine encoding and character set