Skip to content

Commit 81716cf

Browse files
committed
don't show if logfile is closed
1 parent 17c3795 commit 81716cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/debug/session.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,6 +2343,7 @@ def self.debug(&b)
23432343
def self.log level, msg
23442344
if check_loglevel level
23452345
@logfile = STDERR unless defined? @logfile
2346+
return if @logfile.closed?
23462347

23472348
if defined? SESSION
23482349
pi = SESSION.process_info

0 commit comments

Comments
 (0)