chiark / gitweb /
Do not log nomsgs tell events
[ircbot] / irccore.tcl
index bdb8c8e7273a17d0c75d9732229602a33dcbd83e..069743e54f046cfc938e192f803909289151ef82 100644 (file)
@@ -140,6 +140,10 @@ proc sendout {command args} { eval sendout_priority [list 0 $command] $args }
 proc log {data} {
     puts $data
 }
+    
+proc log_intern {what data} {
+    puts "[clock seconds] ++ $what $data"
+}
 
 proc logerror {data} {
     log $data
@@ -220,8 +224,9 @@ proc catch_restoreei {body} {
 }
 
 proc catch_logged {body} {
+    global errorInfo
     if {[catch { uplevel 1 $body } emsg]} {
-       logerror "error (catch_logged): $emsg"
+       logerror "error (catch_logged): $emsg\n $errorInfo"
     }
 }