- Partial redesigned of resolver away from exceptions and returning ERROR Values instead

- Simplification of tftp_provisioner.php
- Refactored the filename cache into standalone abstract class which can be implemented using different backends
- Check cache for duplicate files when adding and report

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-02-17 19:41:02 +01:00
parent 7aa4524b19
commit c46dd2f134
4 changed files with 191 additions and 104 deletions

View File

@@ -50,4 +50,19 @@ function parse_ini_file_multi($file, $process_sections = false, $scanner_mode =
}
return $data;
}
function log_debug($message) {
global $logger;
$logger->log('LOG_DEBUG', $message);
}
function log_error($message) {
global $logger;
$logger->log('LOG_ERROR', $message);
}
function log_error_and_throw($message) {
log_error($message);
throw new Exception($message);
}
?>