Files
pallectrum/electrum
SomberNight 7335a584e7 logging: handle "cannot delete old logfile" error
E.g. on Windows, files open in one process cannot be deleted by another process.
With file logging enabled, if an old logfile was open in a text editor,
Electrum could crash during startup.

```
E | __main__ |
Traceback (most recent call last):
  File "...\electrum\run_electrum", line 391, in main
    handle_cmd(
  File "...\electrum\run_electrum", line 403, in handle_cmd
    configure_logging(config)
  File "...\electrum\electrum\logging.py", line 278, in configure_logging
    _configure_file_logging(log_directory)
  File "...\electrum\electrum\logging.py", line 107, in _configure_file_logging
    _delete_old_logs(log_directory)
  File "...\electrum\electrum\logging.py", line 98, in _delete_old_logs
    os.remove(str(f))
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '...\\AppData\\Roaming\\Electrum\\testnet\\logs\\electrum_log_20210414T023751Z_25008.log'
```
2021-04-14 05:10:54 +02:00
..
2021-04-13 19:05:07 +02:00
2021-02-17 17:28:13 +01:00
2021-04-08 15:12:32 +02:00
2021-03-23 17:30:40 +01:00
2021-03-21 00:36:23 -04:00
2021-03-26 14:28:34 +01:00
2021-03-21 00:36:23 -04:00
2021-03-21 00:36:23 -04:00
2021-04-08 19:49:43 +02:00
2021-03-21 00:36:23 -04:00
2021-04-01 03:33:16 +02:00
2021-03-03 15:35:38 +01:00
2021-03-21 00:36:23 -04:00
2021-03-12 12:41:10 +01:00
2021-04-13 19:05:07 +02:00
2021-03-21 00:36:23 -04:00
2021-03-21 00:36:23 -04:00
2021-02-23 22:38:53 +01:00
2021-03-28 06:05:04 +02:00
2021-03-21 00:36:23 -04:00
2021-04-08 15:22:40 +02:00
2021-04-02 15:07:08 +02:00