Conditions | 5 |
Total Lines | 8 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """Определяет логирование процесса.""" |
||
20 | def writelog(logmsg): |
||
21 | """Пишет лог, если так указано в конфиге.""" |
||
22 | if os.path.isfile(opt_logname) is False: |
||
23 | with open(opt_logname, 'w') as log: |
||
24 | pass |
||
25 | if check_logging_opt() is True: |
||
26 | with open(opt_logname, 'a') as log: |
||
27 | log.write(f'{logmsg}\n') |
||
28 |