- 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:
@@ -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);
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user