Richard Esplin
ba0ba71bf4
Eliminate unnecessary closing of the log file.
...
Name returns a string that is the log file name: the channel plus the timestamp.
But on my system log.name returns the fully qualified path to the currently open file. This is because log is a file handle, so if you declare it with a path, it will be included in the name.
On systems were logging is not in the current directory, the two will never match, and the file is closed and then reopened.
Only taking the basename solves this problem.
2014-01-15 16:15:11 -07:00
..
2013-08-24 11:28:29 +02:00
2013-12-24 14:38:26 +00:00
2013-12-01 08:45:40 +01:00
2013-04-22 23:42:42 +00:00
2013-12-27 15:04:50 +00:00
2013-01-01 21:11:24 +01:00
2013-05-21 18:30:16 +02:00
2014-01-15 16:15:11 -07:00
2013-11-27 00:02:05 +01:00
2013-11-27 00:02:05 +01:00
2013-03-03 19:48:31 +01:00
2013-05-09 09:40:55 +02:00
2013-08-07 15:41:08 +00:00
2012-12-26 15:43:35 +01:00
2013-12-01 08:45:40 +01:00
2013-08-24 11:28:29 +02:00
2013-11-27 00:02:05 +01:00
2013-01-01 21:11:24 +01:00
2013-11-29 16:09:37 +01:00
2012-12-26 15:43:35 +01:00
2013-08-06 10:17:23 +00:00
2013-11-27 00:02:05 +01:00
2012-12-26 15:43:35 +01:00
2013-08-11 12:22:12 +02:00
2013-11-27 00:02:05 +01:00
2013-12-15 18:44:11 +00:00
2013-11-27 00:02:05 +01:00
2014-01-01 20:46:09 +00:00
2013-08-24 11:28:29 +02:00
2013-11-27 00:02:05 +01:00
2012-12-26 15:43:35 +01:00
2013-12-24 16:31:45 +00:00
2012-12-26 15:43:35 +01:00
2012-12-26 15:43:35 +01:00
2013-08-24 11:28:29 +02:00
2013-07-14 09:44:34 +02:00
2013-12-01 08:45:40 +01:00
2013-11-27 00:02:05 +01:00
2012-12-26 15:43:35 +01:00
2012-12-26 15:43:35 +01:00
2012-12-26 15:43:35 +01:00
2013-07-13 17:28:21 +02:00
2013-01-01 21:11:24 +01:00
2012-12-26 15:43:35 +01:00
2013-08-24 11:28:29 +02:00
2013-01-01 21:11:24 +01:00
2013-11-27 00:02:05 +01:00
2013-06-17 23:54:59 +02:00
2013-11-27 00:02:05 +01:00
2013-11-27 00:02:05 +01:00
2013-11-27 00:02:05 +01:00
2012-12-26 15:43:35 +01:00
2013-12-28 23:05:23 +00:00
2013-08-24 11:28:29 +02:00
2013-11-27 00:02:05 +01:00
2013-01-01 21:11:24 +01:00
2013-01-01 21:11:24 +01:00
2013-11-27 00:02:05 +01:00
2013-01-21 21:09:50 +01:00
2013-12-25 16:43:41 +01:00
2013-08-24 11:28:29 +02:00