()
| 106 | logger = logging.getLogger('default') |
| 107 | |
| 108 | def restartLoggingInUpdatedAppdataLocation(): |
| 109 | global logger |
| 110 | for i in list(logger.handlers): |
| 111 | logger.removeHandler(i) |
| 112 | i.flush() |
| 113 | i.close() |
| 114 | if configureLogging(): |
| 115 | if '-c' in sys.argv: |
| 116 | logger = logging.getLogger('file_only') |
| 117 | else: |
| 118 | logger = logging.getLogger('both') |
| 119 | else: |
| 120 | logger = logging.getLogger('default') |
| 121 |
nothing calls this directly
no test coverage detected