you should add a message for the exception (for instance ``sprintf('Invalid log level %s', $level)``) to make it easier to debug. Empty exception message are quite bad for debugging