generate more data logic

This commit is contained in:
Robin Appelman 2024-07-26 22:01:01 +02:00
commit 5e09bb8ea6
16 changed files with 8867 additions and 8758 deletions

7
Cargo.lock generated
View file

@ -553,6 +553,7 @@ name = "logsmash-data"
version = "0.1.0"
dependencies = [
"serde",
"version-compare",
]
[[package]]
@ -1117,6 +1118,12 @@ version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
[[package]]
name = "version-compare"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"
[[package]]
name = "version_check"
version = "0.9.4"

7
data/Cargo.lock generated
View file

@ -7,6 +7,7 @@ name = "logsmash-data"
version = "0.1.0"
dependencies = [
"serde",
"version-compare",
]
[[package]]
@ -63,3 +64,9 @@ name = "unicode-ident"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
name = "version-compare"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"

View file

@ -6,4 +6,5 @@ edition = "2021"
[dependencies]
serde = { version = "1.0.204", features = ["derive"] }
version-compare = "0.2.0"

View file

@ -1,62 +0,0 @@
use crate::{LoggingStatement, LoggingStatementWithPathPrefix};
// mod server_24;
// mod server_25;
// mod server_26;
// mod server_27;
// mod server_28;
mod files_accesscontrol_1_19;
mod files_antivirus_5_5;
mod server_29;
pub const MIN_VERSION: u32 = 24;
pub const MAX_VERSION: u32 = 29;
pub fn get_statements(version: u32) -> StatementList {
let server = match version {
// ("server", 24) => server_24::STATEMENTS,
// ("server", 25) => server_25::STATEMENTS,
// ("server", 26) => server_26::STATEMENTS,
// ("server", 27) => server_27::STATEMENTS,
// ("server", 28) => server_28::STATEMENTS,
29 => server_29::STATEMENTS,
_ => server_29::STATEMENTS,
};
StatementList::new(vec![
("", server),
(
"/apps/files_accesscontrol",
files_accesscontrol_1_19::STATEMENTS,
),
("/apps/files_antivirus", files_antivirus_5_5::STATEMENTS),
])
}
pub struct StatementList {
statements: Vec<(&'static str, &'static [LoggingStatement])>,
}
impl StatementList {
pub fn new(statements: Vec<(&'static str, &'static [LoggingStatement])>) -> StatementList {
StatementList { statements }
}
pub fn iter(&self) -> impl Iterator<Item = &'static LoggingStatement> + '_ {
self.statements
.iter()
.copied()
.flat_map(|(_, list)| list.iter())
}
pub fn get(&self, mut index: usize) -> Option<LoggingStatementWithPathPrefix> {
for (prefix, list) in &self.statements {
if index < list.len() {
return list
.get(index)
.map(|statement| statement.with_path_prefix(prefix));
}
index -= list.len()
}
None
}
}

View file

@ -1,36 +1,36 @@
pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 61usize , placeholders : & ["$this->getErrorMessage($rule, $field, $parameter)"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 66usize , placeholders : & ["$field" , "str_replace(\"_\", \" \", $rule)"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*) must be provided and must be (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 74usize , placeholders : & ["$field"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*) must be provided$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 133usize , placeholders : & ["json_encode($limit)"] , exception : Some ("Exception") , regex : "^Validation rule max requires at least 1 parameter\\. (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 143usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Validation rule max requires at least 1 parameter\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Activity/ActivityManager.php" , line : 324usize , placeholders : & ["$subject"] , exception : None , regex : "^Could not create activity entry for (.*)\\. Entity not found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Activity/ActivityManager.php" , line : 327usize , placeholders : & ["$subject"] , exception : None , regex : "^Could not create activity entry for (.*)\\. Entity not found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 400usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Unknown subject for activity\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 435usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Subject parameters too long$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 506usize , placeholders : & ["$className" , "$objectType"] , exception : Some ("InvalidArgumentException") , regex : "^No entity relation present for (.*) to (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 521usize , placeholders : & ["$className" , "$objectType"] , exception : Some ("InvalidArgumentException") , regex : "^No entity relation present for (.*) to (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 525usize , placeholders : & ["$className" , "$objectType"] , exception : Some ("InvalidArgumentException") , regex : "^No entity relation present for (.*) to (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/DeckProvider.php" , line : 82usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/DeckProvider.php" , line : 115usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/DeckProvider.php" , line : 132usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Cron/SessionsCleanup.php" , line : 51usize , placeholders : & [] , exception : None , regex : "^Run cleanup job for deck sessions$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Cron/SessionsCleanup.php" , line : 54usize , placeholders : & ["$removedSessions"] , exception : None , regex : "^Removed (.*) inactive sessions$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Cron/ScheduledNotifications.php" , line : 68usize , placeholders : & ["$card->getId()"] , exception : None , regex : "^Could not create overdue notification for card with id (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/SessionMapper.php" , line : 49usize , placeholders : & [] , exception : Some ("OCP\\AppFramework\\Db\\DoesNotExistException") , regex : "^Session is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/SessionMapper.php" , line : 53usize , placeholders : & [] , exception : Some ("OCP\\AppFramework\\Db\\DoesNotExistException") , regex : "^Session is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/RelationalObject.php" , line : 67usize , placeholders : & ["get_class($this->getObject())"] , exception : Some ("Exception") , regex : "^jsonSerialize is not implemented on (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/RelationalEntity.php" , line : 126usize , placeholders : & [] , exception : Some ("Exception") , regex : "^resolver must return an instance of RelationalObject$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Db/BoardMapper.php" , line : 503usize , placeholders : & ["$acl->getId()" , "$acl->getParticipant()"] , exception : None , regex : "^User (.*) not found when mapping acl (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Db/BoardMapper.php" , line : 511usize , placeholders : & ["$acl->getId()" , "$acl->getParticipant()"] , exception : None , regex : "^Group (.*) not found when mapping acl (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Db/BoardMapper.php" , line : 524usize , placeholders : & [] , exception : None , regex : "^Failed to get circle details when building ACL$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Warn , path : "/lib/Db/BoardMapper.php" , line : 528usize , placeholders : & ["$acl->getId()"] , exception : None , regex : "^Unknown permission type for mapping acl (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/AssignmentMapper.php" , line : 114usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^No origin found for assignment$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Controller/StackApiController.php" , line : 67usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Invalid If\\-Modified\\-Since header provided\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Controller/BoardApiController.php" , line : 72usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Invalid If\\-Modified\\-Since header provided\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Listeners/FullTextSearchEventListener.php" , line : 105usize , placeholders : & [] , exception : None , regex : "^Error when handling deck full text search event$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Listeners/LiveUpdateListener.php" , line : 112usize , placeholders : & [] , exception : None , regex : "^Error when handling live update event$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 161usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 182usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 203usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 224usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 241usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/ClassLoader.php" , line : 250usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^A non\\-empty PSR\\-4 prefix must end with a namespace separator\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/ClassLoader.php" , line : 305usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^A non\\-empty PSR\\-4 prefix must end with a namespace separator\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php" , line : 40usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Ref value must be a string$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php" , line : 28usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\RuntimeException") , regex : "^cURL not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php" , line : 48usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^JSON schema not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php" , line : 48usize , placeholders : & ["sprintf(\n 'The JSON schema \"%s\" was not found.',\n $uri\n )"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php" , line : 38usize , placeholders : & ["$errorMessage"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php" , line : 42usize , placeholders : & ["$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^JSON schema not found at (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php" , line : 48usize , placeholders : & ["$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^JSON schema not found at (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php" , line : 140usize , placeholders : & ["sprintf(\"Unable to resolve URI '%s' from base '%s'\", $relativePath, $basePath)"] , exception : Some ("JsonSchema\\Exception\\UriResolverException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 92usize , placeholders : & ["sprintf('Media type %s expected', Validator::SCHEMA_MEDIA_TYPE)"] , exception : Some ("JsonSchema\\Exception\\InvalidSchemaMediaTypeException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 143usize , placeholders : & ["$parsed['fragment']" , "$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^Fragment \"(.*)\" not found in (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 150usize , placeholders : & ["$pathElement" , "$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^Fragment part \"(.*)\" is no object in (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 213usize , placeholders : & ["$error"] , exception : Some ("JsonSchema\\Exception\\JsonDecodingException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php" , line : 57usize , placeholders : & ["sprintf('Error validating %s: %s', $error['pointer'], $error['message'])"] , exception : Some ("JsonSchema\\Exception\\ValidationException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php" , line : 143usize , placeholders : & ["$message"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php" , line : 168usize , placeholders : & ["$name"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Unknown constraint (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php" , line : 172usize , placeholders : & ["$name"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Invalid class (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php" , line : 191usize , placeholders : & ["$constraintName"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Unknown constraint (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php" , line : 40usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^no schema found to verify against$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php" , line : 52usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\RuntimeException") , regex : "^Cannot validate the schema of a non\\-object$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php" , line : 79usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\InvalidSchemaException") , regex : "^Schema did not pass validation$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php" , line : 138usize , placeholders : & ["sprintf(\n 'No wording for %s available, expected wordings are: [%s]',\n var_export($type, true),\n implode(', ', array_filter(self::$wording)))"] , exception : Some ("UnexpectedValueException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php" , line : 214usize , placeholders : & ["(is_object($value) ? 'object' : $value)" , "$type"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^(.*) is an invalid type for (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php" , line : 131usize , placeholders : & ["sprintf(\n \"Could not resolve fragment '%s': no file is defined\",\n $jsonPointer->getPropertyPathAsString()\n )"] , exception : Some ("JsonSchema\\Exception\\UnresolvableJsonPointerException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php" , line : 145usize , placeholders : & ["sprintf(\n 'File: %s is found, but could not resolve fragment: %s',\n $jsonPointer->getFilename(),\n $jsonPointer->getPropertyPathAsString()\n )"] , exception : Some ("JsonSchema\\Exception\\UnresolvableJsonPointerException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/Calendar.php" , line : 81usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^Setting ACL is not supported on this node$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/Calendar.php" , line : 114usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^Creating a new entry is not implemented$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/Calendar.php" , line : 129usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\NotFound") , regex : "^Node not found$" , },
@ -38,66 +38,32 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/Calendar.php" , line : 192usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^no permission to change the displayname$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/Calendar.php" , line : 201usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^no permission to change the calendar color$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/Calendar.php" , line : 205usize , placeholders : & [] , exception : Some ("Sabre\\VObject\\InvalidDataException") , regex : "^No valid color provided$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/DeckCalendarBackend.php" , line : 69usize , placeholders : & ["$id"] , exception : Some ("Sabre\\DAV\\Exception\\NotFound") , regex : "^Board with id (.*) not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/CalendarObject.php" , line : 66usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^Setting ACL is not supported on this node$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/CalendarObject.php" , line : 74usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^This calendar\\-object is read\\-only$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/CalendarObject.php" , line : 96usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^This calendar\\-object is read\\-only$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/CalendarObject.php" , line : 104usize , placeholders : & [] , exception : Some ("Sabre\\DAV\\Exception\\Forbidden") , regex : "^This calendar\\-object is read\\-only$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/DAV/DeckCalendarBackend.php" , line : 69usize , placeholders : & ["$id"] , exception : Some ("Sabre\\DAV\\Exception\\NotFound") , regex : "^Board with id (.*) not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 61usize , placeholders : & ["$this->getErrorMessage($rule, $field, $parameter)"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 66usize , placeholders : & ["$field" , "str_replace(\"_\", \" \", $rule)"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*) must be provided and must be (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 74usize , placeholders : & ["$field"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*) must be provided$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 133usize , placeholders : & ["json_encode($limit)"] , exception : Some ("Exception") , regex : "^Validation rule max requires at least 1 parameter\\. (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Validators/BaseValidator.php" , line : 143usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Validation rule max requires at least 1 parameter\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Listeners/LiveUpdateListener.php" , line : 112usize , placeholders : & [] , exception : None , regex : "^Error when handling live update event$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Listeners/FullTextSearchEventListener.php" , line : 105usize , placeholders : & [] , exception : None , regex : "^Error when handling deck full text search event$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Controller/BoardApiController.php" , line : 72usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Invalid If\\-Modified\\-Since header provided\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Controller/StackApiController.php" , line : 67usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Invalid If\\-Modified\\-Since header provided\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Collaboration/Resources/ResourceProviderCard.php" , line : 80usize , placeholders : & [] , exception : Some ("OCP\\Collaboration\\Resources\\ResourceException") , regex : "^No card found for resource$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Collaboration/Resources/ResourceProviderCard.php" , line : 82usize , placeholders : & [] , exception : Some ("OCP\\Collaboration\\Resources\\ResourceException") , regex : "^No unique card found for resource, this should never happen$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Migration/DeletedCircleCleanup.php" , line : 32usize , placeholders : & ["$acl->getParticipant()"] , exception : None , regex : "^Removed circle with id (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppInfo/Application.php" , line : 125usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Cannot include autoload\\. Did you run install dependencies using composer\\?$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 116usize , placeholders : & ["$type"] , exception : Some ("OCA\\Deck\\InvalidAttachmentType") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 127usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^card id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 167usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^card id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 216usize , placeholders : & ["$this->l10n->t('No data was provided to create an attachment.')"] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 246usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 253usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 260usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 288usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 302usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 309usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 344usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 357usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 382usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 399usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Restore is not allowed\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Service/FileService.php" , line : 103usize , placeholders : & [] , exception : None , regex : "^Extending data for file attachment failed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Service/FileService.php" , line : 106usize , placeholders : & [] , exception : None , regex : "^Extending data for file attachment failed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 142usize , placeholders : & ["$error"] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 159usize , placeholders : & [] , exception : Some ("OCA\\Deck\\Exceptions\\ConflictException") , regex : "^File already exists\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 165usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Could not read file$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 188usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Could not read file$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 219usize , placeholders : & [] , exception : Some ("Exception") , regex : "^no instance id!$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Service/Importer/BoardImportService.php" , line : 111usize , placeholders : & ["$message"] , exception : None , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Service/Importer/BoardImportService.php" , line : 149usize , placeholders : & [] , exception : None , regex : "^Failed to import board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 150usize , placeholders : & ["$th->getMessage()"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 159usize , placeholders : & ["$this->getSystem()"] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Invalid system: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 207usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^System to import not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 229usize , placeholders : & ["$board->getOwner()"] , exception : Some ("Exception") , regex : "^Target owner (.*) not found\\. Please provide a mapping through the import config\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 359usize , placeholders : & [] , exception : Some ("OCP\\Comments\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 362usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid parent id: The parent comment was not found or belongs to a different card$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 369usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid input values$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 371usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Could not create comment\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 396usize , placeholders : & [] , exception : Some ("OCA\\Deck\\Exceptions\\ConflictException") , regex : "^File already exists\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 467usize , placeholders : & [] , exception : Some ("OCA\\Deck\\Exceptions\\ConflictException") , regex : "^Invalid config file$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 480usize , placeholders : & ["$this->getConfig('owner')->getUID()"] , exception : Some ("LogicException") , regex : "^Owner \"(.*)\" not found on Nextcloud\\. Check setting json\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 86usize , placeholders : & ["$trelloUid"] , exception : Some ("LogicException") , regex : "^Trello user (.*) not found in property \"members\" of json data$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 89usize , placeholders : & [] , exception : Some ("LogicException") , regex : "^User on setting uidRelation is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 94usize , placeholders : & ["$nextcloudUid"] , exception : Some ("LogicException") , regex : "^User on setting uidRelation not found: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 208usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid name of board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/DeckJsonService.php" , line : 68usize , placeholders : & [] , exception : Some ("LogicException") , regex : "^User on setting uidRelation is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/DeckJsonService.php" , line : 73usize , placeholders : & ["$nextcloudUid"] , exception : Some ("LogicException") , regex : "^User on setting uidRelation not found: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/DeckJsonService.php" , line : 142usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid name of board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 159usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Invalid board id to import$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 181usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Invalid return of api$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Critical , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 183usize , placeholders : & ["$e->getMessage()"] , exception : None , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 187usize , placeholders : & ["$e->getMessage()"] , exception : Some ("Exception") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 203usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Invalid return of api$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 87usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Config file not found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 91usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Failed to parse JSON\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 107usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^config file not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 155usize , placeholders : & ["$data"] , exception : Some ("OCP\\Files\\NotFoundException") , regex : "^Could not find file (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 179usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Data file not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/AssignmentMapper.php" , line : 114usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^No origin found for assignment$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Db/BoardMapper.php" , line : 503usize , placeholders : & ["$acl->getId()" , "$acl->getParticipant()"] , exception : None , regex : "^User (.*) not found when mapping acl (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Db/BoardMapper.php" , line : 511usize , placeholders : & ["$acl->getId()" , "$acl->getParticipant()"] , exception : None , regex : "^Group (.*) not found when mapping acl (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Db/BoardMapper.php" , line : 524usize , placeholders : & [] , exception : None , regex : "^Failed to get circle details when building ACL$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Warn , path : "/lib/Db/BoardMapper.php" , line : 528usize , placeholders : & ["$acl->getId()"] , exception : None , regex : "^Unknown permission type for mapping acl (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/RelationalEntity.php" , line : 126usize , placeholders : & [] , exception : Some ("Exception") , regex : "^resolver must return an instance of RelationalObject$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/RelationalObject.php" , line : 67usize , placeholders : & ["get_class($this->getObject())"] , exception : Some ("Exception") , regex : "^jsonSerialize is not implemented on (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/SessionMapper.php" , line : 49usize , placeholders : & [] , exception : Some ("OCP\\AppFramework\\Db\\DoesNotExistException") , regex : "^Session is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/SessionMapper.php" , line : 53usize , placeholders : & [] , exception : Some ("OCP\\AppFramework\\Db\\DoesNotExistException") , regex : "^Session is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Service/FilesAppService.php" , line : 98usize , placeholders : & ["$share->getId()"] , exception : None , regex : "^Unable to find node for share with ID (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FilesAppService.php" , line : 167usize , placeholders : & [] , exception : Some ("OCP\\Files\\NotFoundException") , regex : "^File not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FilesAppService.php" , line : 171usize , placeholders : & [] , exception : Some ("OCP\\Files\\NotFoundException") , regex : "^File not found$" , },
@ -109,10 +75,6 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FilesAppService.php" , line : 299usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Not implemented$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FilesAppService.php" , line : 309usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^No permission to access the attachment from the card$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FilesAppService.php" , line : 313usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^No permission to access the attachment from the card$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 125usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid type provided for assignemnt$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 132usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^The user is already assigned to the card$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 143usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^The user is not part of the board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 195usize , placeholders : & ["$userId"] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^No assignment for (.*)found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CommentService.php" , line : 61usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^A valid card id must be provided$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CommentService.php" , line : 91usize , placeholders : & [] , exception : Some ("OCP\\Comments\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CommentService.php" , line : 94usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^No comment found\\.$" , },
@ -129,12 +91,57 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CommentService.php" , line : 180usize , placeholders : & [] , exception : Some ("OCP\\Comments\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CommentService.php" , line : 183usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^No comment found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CommentService.php" , line : 186usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Only authors are allowed to edit their comment\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 71usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^label id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 96usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^title must be unique$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 102usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 126usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 157usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^title must be unique$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 163usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Service/FileService.php" , line : 103usize , placeholders : & [] , exception : None , regex : "^Extending data for file attachment failed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Service/FileService.php" , line : 106usize , placeholders : & [] , exception : None , regex : "^Extending data for file attachment failed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 142usize , placeholders : & ["$error"] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 159usize , placeholders : & [] , exception : Some ("OCA\\Deck\\Exceptions\\ConflictException") , regex : "^File already exists\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 165usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Could not read file$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 188usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Could not read file$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/FileService.php" , line : 219usize , placeholders : & [] , exception : Some ("Exception") , regex : "^no instance id!$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 86usize , placeholders : & ["$trelloUid"] , exception : Some ("LogicException") , regex : "^Trello user (.*) not found in property \"members\" of json data$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 89usize , placeholders : & [] , exception : Some ("LogicException") , regex : "^User on setting uidRelation is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 94usize , placeholders : & ["$nextcloudUid"] , exception : Some ("LogicException") , regex : "^User on setting uidRelation not found: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloJsonService.php" , line : 208usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid name of board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/DeckJsonService.php" , line : 68usize , placeholders : & [] , exception : Some ("LogicException") , regex : "^User on setting uidRelation is invalid$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/DeckJsonService.php" , line : 73usize , placeholders : & ["$nextcloudUid"] , exception : Some ("LogicException") , regex : "^User on setting uidRelation not found: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/DeckJsonService.php" , line : 142usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid name of board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 159usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Invalid board id to import$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 181usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Invalid return of api$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Critical , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 183usize , placeholders : & ["$e->getMessage()"] , exception : None , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 187usize , placeholders : & ["$e->getMessage()"] , exception : Some ("Exception") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/Systems/TrelloApiService.php" , line : 203usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Invalid return of api$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Service/Importer/BoardImportService.php" , line : 111usize , placeholders : & ["$message"] , exception : None , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Service/Importer/BoardImportService.php" , line : 149usize , placeholders : & [] , exception : None , regex : "^Failed to import board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 150usize , placeholders : & ["$th->getMessage()"] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 159usize , placeholders : & ["$this->getSystem()"] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Invalid system: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 207usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^System to import not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 229usize , placeholders : & ["$board->getOwner()"] , exception : Some ("Exception") , regex : "^Target owner (.*) not found\\. Please provide a mapping through the import config\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 359usize , placeholders : & [] , exception : Some ("OCP\\Comments\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 362usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid parent id: The parent comment was not found or belongs to a different card$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 369usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid input values$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 371usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Could not create comment\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 396usize , placeholders : & [] , exception : Some ("OCA\\Deck\\Exceptions\\ConflictException") , regex : "^File already exists\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 467usize , placeholders : & [] , exception : Some ("OCA\\Deck\\Exceptions\\ConflictException") , regex : "^Invalid config file$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportService.php" , line : 480usize , placeholders : & ["$this->getConfig('owner')->getUID()"] , exception : Some ("LogicException") , regex : "^Owner \"(.*)\" not found on Nextcloud\\. Check setting json\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 87usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Config file not found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 91usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^Failed to parse JSON\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 107usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^config file not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 155usize , placeholders : & ["$data"] , exception : Some ("OCP\\Files\\NotFoundException") , regex : "^Could not find file (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/Importer/BoardImportCommandService.php" , line : 179usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Data file not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 116usize , placeholders : & ["$type"] , exception : Some ("OCA\\Deck\\InvalidAttachmentType") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 127usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^card id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 167usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^card id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 216usize , placeholders : & ["$this->l10n->t('No data was provided to create an attachment.')"] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 246usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 253usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 260usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 288usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 302usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 309usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 344usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 357usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 382usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AttachmentService.php" , line : 399usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Restore is not allowed\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/PermissionService.php" , line : 163usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/PermissionService.php" , line : 172usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Card is deleted$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/PermissionService.php" , line : 180usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Permission denied$" , },
@ -145,12 +152,6 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Service/PermissionService.php" , line : 299usize , placeholders : & ["$acl->getId()"] , exception : None , regex : "^No circle found for acl rule (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Service/PermissionService.php" , line : 310usize , placeholders : & ["$member->getUserId()"] , exception : None , regex : "^No user found for circle member (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Info , path : "/lib/Service/PermissionService.php" , line : 316usize , placeholders : & [] , exception : None , regex : "^Member not found in circle that was accessed\\. This should not happen\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 91usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^You must be admin to get the group limit$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 152usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Must be logged in to set user config$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 160usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^You must be admin to set the group limit$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 179usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Board notification option must be one of: off, assigned, all$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 228usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Must be logged in get the attachment folder$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 236usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Must be logged in get the attachment folder$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Service/CardService.php" , line : 203usize , placeholders : & ["$boardId"] , exception : None , regex : "^Unable to check permission for a previously obtained board (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CardService.php" , line : 230usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/CardService.php" , line : 260usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^card id must be a number$" , },
@ -178,15 +179,27 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/StackService.php" , line : 226usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/StackService.php" , line : 253usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^stack id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/StackService.php" , line : 293usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 71usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^label id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 96usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^title must be unique$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 102usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 126usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 157usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^title must be unique$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/LabelService.php" , line : 163usize , placeholders : & [] , exception : Some ("OCA\\Deck\\StatusException") , regex : "^Operation not allowed\\. This board is archived\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 125usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Invalid type provided for assignemnt$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 132usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^The user is already assigned to the card$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 143usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^The user is not part of the board$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/AssignmentService.php" , line : 195usize , placeholders : & ["$userId"] , exception : Some ("OCA\\Deck\\NotFoundException") , regex : "^No assignment for (.*)found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/BoardService.php" , line : 258usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Creating boards has been disabled for your account\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/BoardService.php" , line : 311usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^This board has already been deleted$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/BoardService.php" , line : 551usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Creating boards has been disabled for your account\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/BoardService.php" , line : 640usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^board id must be a number$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 96usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 107usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 150usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 182usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 220usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 91usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^You must be admin to get the group limit$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 152usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Must be logged in to set user config$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 160usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^You must be admin to set the group limit$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 179usize , placeholders : & [] , exception : Some ("OCA\\Deck\\BadRequestException") , regex : "^Board notification option must be one of: off, assigned, all$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 228usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Must be logged in get the attachment folder$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Service/ConfigService.php" , line : 236usize , placeholders : & [] , exception : Some ("OCA\\Deck\\NoPermissionException") , regex : "^Must be logged in get the attachment folder$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppInfo/Application.php" , line : 125usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Cannot include autoload\\. Did you run install dependencies using composer\\?$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Sharing/DeckShareProvider.php" , line : 135usize , placeholders : & [] , exception : Some ("OCP\\Share\\Exceptions\\GenericShareException") , regex : "^Card not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Sharing/DeckShareProvider.php" , line : 141usize , placeholders : & [] , exception : Some ("OCP\\Share\\Exceptions\\GenericShareException") , regex : "^Already shared$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Sharing/DeckShareProvider.php" , line : 237usize , placeholders : & [] , exception : Some ("OCP\\Share\\Exceptions\\ShareNotFound") , regex : "^$" , },
@ -196,36 +209,23 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Sharing/ShareAPIHelper.php" , line : 61usize , placeholders : & ["$e->getMessage()"] , exception : Some ("OCP\\Files\\NotFoundException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Sharing/ShareAPIHelper.php" , line : 79usize , placeholders : & ["$this->l10n->t('Invalid date, date format must be YYYY-MM-DD')"] , exception : Some ("OCP\\AppFramework\\OCS\\OCSNotFoundException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Sharing/ShareAPIHelper.php" , line : 99usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Invalid date\\. Format must be YYYY\\-MM\\-DD$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.php" , line : 40usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Ref value must be a string$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php" , line : 131usize , placeholders : & ["sprintf(\n \"Could not resolve fragment '%s': no file is defined\",\n $jsonPointer->getPropertyPathAsString()\n )"] , exception : Some ("JsonSchema\\Exception\\UnresolvableJsonPointerException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php" , line : 145usize , placeholders : & ["sprintf(\n 'File: %s is found, but could not resolve fragment: %s',\n $jsonPointer->getFilename(),\n $jsonPointer->getPropertyPathAsString()\n )"] , exception : Some ("JsonSchema\\Exception\\UnresolvableJsonPointerException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php" , line : 168usize , placeholders : & ["$name"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Unknown constraint (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php" , line : 172usize , placeholders : & ["$name"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Invalid class (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.php" , line : 191usize , placeholders : & ["$constraintName"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^Unknown constraint (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php" , line : 40usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^no schema found to verify against$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php" , line : 52usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\RuntimeException") , regex : "^Cannot validate the schema of a non\\-object$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php" , line : 79usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\InvalidSchemaException") , regex : "^Schema did not pass validation$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php" , line : 138usize , placeholders : & ["sprintf(\n 'No wording for %s available, expected wordings are: [%s]',\n var_export($type, true),\n implode(', ', array_filter(self::$wording)))"] , exception : Some ("UnexpectedValueException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php" , line : 214usize , placeholders : & ["(is_object($value) ? 'object' : $value)" , "$type"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^(.*) is an invalid type for (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php" , line : 57usize , placeholders : & ["sprintf('Error validating %s: %s', $error['pointer'], $error['message'])"] , exception : Some ("JsonSchema\\Exception\\ValidationException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php" , line : 143usize , placeholders : & ["$message"] , exception : Some ("JsonSchema\\Exception\\InvalidArgumentException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php" , line : 140usize , placeholders : & ["sprintf(\"Unable to resolve URI '%s' from base '%s'\", $relativePath, $basePath)"] , exception : Some ("JsonSchema\\Exception\\UriResolverException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php" , line : 28usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\RuntimeException") , regex : "^cURL not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php" , line : 48usize , placeholders : & [] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^JSON schema not found$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php" , line : 48usize , placeholders : & ["sprintf(\n 'The JSON schema \"%s\" was not found.',\n $uri\n )"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php" , line : 38usize , placeholders : & ["$errorMessage"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php" , line : 42usize , placeholders : & ["$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^JSON schema not found at (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php" , line : 48usize , placeholders : & ["$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^JSON schema not found at (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 92usize , placeholders : & ["sprintf('Media type %s expected', Validator::SCHEMA_MEDIA_TYPE)"] , exception : Some ("JsonSchema\\Exception\\InvalidSchemaMediaTypeException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 143usize , placeholders : & ["$parsed['fragment']" , "$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^Fragment \"(.*)\" not found in (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 150usize , placeholders : & ["$pathElement" , "$uri"] , exception : Some ("JsonSchema\\Exception\\ResourceNotFoundException") , regex : "^Fragment part \"(.*)\" is no object in (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php" , line : 213usize , placeholders : & ["$error"] , exception : Some ("JsonSchema\\Exception\\JsonDecodingException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 161usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 182usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 203usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 224usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/InstalledVersions.php" , line : 241usize , placeholders : & ["$packageName"] , exception : Some ("OutOfBoundsException") , regex : "^Package \"(.*)\" is not installed$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/ClassLoader.php" , line : 250usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^A non\\-empty PSR\\-4 prefix must end with a namespace separator\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/vendor/composer/ClassLoader.php" , line : 305usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^A non\\-empty PSR\\-4 prefix must end with a namespace separator\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Cron/ScheduledNotifications.php" , line : 68usize , placeholders : & ["$card->getId()"] , exception : None , regex : "^Could not create overdue notification for card with id (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Cron/SessionsCleanup.php" , line : 51usize , placeholders : & [] , exception : None , regex : "^Run cleanup job for deck sessions$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Cron/SessionsCleanup.php" , line : 54usize , placeholders : & ["$removedSessions"] , exception : None , regex : "^Removed (.*) inactive sessions$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/DeckProvider.php" , line : 82usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/DeckProvider.php" , line : 115usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/DeckProvider.php" , line : 132usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Activity/ActivityManager.php" , line : 324usize , placeholders : & ["$subject"] , exception : None , regex : "^Could not create activity entry for (.*)\\. Entity not found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Activity/ActivityManager.php" , line : 327usize , placeholders : & ["$subject"] , exception : None , regex : "^Could not create activity entry for (.*)\\. Entity not found\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 400usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Unknown subject for activity\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 435usize , placeholders : & [] , exception : Some ("Exception") , regex : "^Subject parameters too long$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 506usize , placeholders : & ["$className" , "$objectType"] , exception : Some ("InvalidArgumentException") , regex : "^No entity relation present for (.*) to (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 521usize , placeholders : & ["$className" , "$objectType"] , exception : Some ("InvalidArgumentException") , regex : "^No entity relation present for (.*) to (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/ActivityManager.php" , line : 525usize , placeholders : & ["$className" , "$objectType"] , exception : Some ("InvalidArgumentException") , regex : "^No entity relation present for (.*) to (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 96usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 107usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 150usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 182usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Notification/Notifier.php" , line : 220usize , placeholders : & [] , exception : Some ("OCP\\Notification\\AlreadyProcessedException") , regex : "^$" , },
];

View file

@ -1,33 +1,18 @@
pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppConfig.php" , line : 173usize , placeholders : & ["$key"] , exception : Some ("BadFunctionCallException") , regex : "^(.*) is not a valid key$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppConfig.php" , line : 189usize , placeholders : & ["$key"] , exception : Some ("BadFunctionCallException") , regex : "^(.*) is not a valid key$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppConfig.php" , line : 242usize , placeholders : & ["$methodName"] , exception : Some ("BadFunctionCallException") , regex : "^(.*) does not exist$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Activity/Provider.php" , line : 53usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Item.php" , line : 160usize , placeholders : & ["__METHOD__" , "$e->getMessage()"] , exception : None , regex : "^(.*), exception: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Item.php" , line : 200usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Item.php" , line : 245usize , placeholders : & ["$message" , "$this->generateExtraInfo()"] , exception : None , regex : "^(.*)(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Item.php" , line : 252usize , placeholders : & ["$message" , "$this->generateExtraInfo()"] , exception : None , regex : "^(.*)(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ResponseParser.php" , line : 58usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Empty ICAP response$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ResponseParser.php" , line : 63usize , placeholders : & ["$icapHeader"] , exception : Some ("RuntimeException") , regex : "^Unknown ICAP response: \"(.*)\"$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ICAPTlsClient.php" , line : 63usize , placeholders : & ["$this->host" , "$this->port" , "$errorMessage" , "$errorCode"] , exception : Some ("RuntimeException") , regex : "^Cannot connect to \"tls://(.*):(.*)\": (.*) \\(code (.*)\\)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ICAPClient.php" , line : 73usize , placeholders : & ["$this->host" , "$this->port" , "$errorMessage" , "$errorCode"] , exception : Some ("RuntimeException") , regex : "^Cannot connect to \"tcp://(.*):(.*)\": (.*) \\(code (.*)\\)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/LocalClam.php" , line : 41usize , placeholders : & ["$this->avPath"] , exception : Some ("RuntimeException") , regex : "^The antivirus executable could not be found at (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/LocalClam.php" , line : 60usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Error starting process$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/LocalClam.php" , line : 74usize , placeholders : & ["$result" , "$output"] , exception : None , regex : "^Exit code :: (.*) Response :: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ScannerFactory.php" , line : 52usize , placeholders : & ["$avMode"] , exception : Some ("InvalidArgumentException") , regex : "^Application is misconfigured\\. Please check the settings at the admin page\\. Invalid mode: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ICAP.php" , line : 63usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^The ICAP port and host are not set up\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ICAP.php" , line : 139usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Invalid response from ICAP server$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalKaspersky.php" , line : 58usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^The Kaspersky port and host are not set up\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/ExternalKaspersky.php" , line : 90usize , placeholders : & ["$response"] , exception : None , regex : "^Response :: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalClam.php" , line : 41usize , placeholders : & ["$avSocket" , "$errstr" , "$errno"] , exception : Some ("RuntimeException") , regex : "^Cannot connect to \"(.*)\": (.*) \\(code (.*)\\)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalClam.php" , line : 47usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^The ClamAV port and host are not set up\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalClam.php" , line : 51usize , placeholders : & ["$avHost" , "$avPort"] , exception : Some ("RuntimeException") , regex : "^Could not connect to ClamAV via (.*):(.*)\\. Please check that ClamAV is running and reachable\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/ExternalClam.php" , line : 65usize , placeholders : & ["$response"] , exception : None , regex : "^Response :: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/ScannerBase.php" , line : 178usize , placeholders : & [] , exception : None , regex : "^reinit scanner$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Warn , path : "/lib/Scanner/ScannerBase.php" , line : 191usize , placeholders : & [] , exception : None , regex : "^Failed to write a chunk\\. Check if Stream Length matches StreamMaxLength in anti virus daemon settings$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/ItemMapper.php" , line : 40usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/Status.php" , line : 86usize , placeholders : & ["__METHOD__" , "$e->getMessage()"] , exception : None , regex : "^(.*), exception: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppConfig.php" , line : 173usize , placeholders : & ["$key"] , exception : Some ("BadFunctionCallException") , regex : "^(.*) is not a valid key$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppConfig.php" , line : 189usize , placeholders : & ["$key"] , exception : Some ("BadFunctionCallException") , regex : "^(.*) is not a valid key$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AppConfig.php" , line : 242usize , placeholders : & ["$methodName"] , exception : Some ("BadFunctionCallException") , regex : "^(.*) does not exist$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/AvirWrapper.php" , line : 114usize , placeholders : & ["$e->getMessage()"] , exception : None , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Warn , path : "/lib/AvirWrapper.php" , line : 173usize , placeholders : & ["$status->getDetails()" , "$owner" , "$path"] , exception : None , regex : "^Infected file deleted\\. (.*) Account: (.*) Path: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/AvirWrapper.php" , line : 188usize , placeholders : & ["$status->getDetails()" , "$path" , "$owner"] , exception : None , regex : "^Infected file deleted\\. (.*) File: (.*) Account: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AvirWrapper.php" , line : 191usize , placeholders : & ["$this->l10n->t(\n\t\t\t\t'Virus %s is detected in the file. Upload cannot be completed.',\n\t\t\t\t$status->getDetails()\n\t\t\t)"] , exception : Some ("OCP\\Files\\InvalidContentException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/BackgroundJob/BackgroundScanner.php" , line : 77usize , placeholders : & [] , exception : None , regex : "^Antivirus background scan disabled, skipping$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/BackgroundJob/BackgroundScanner.php" , line : 90usize , placeholders : & ["$e->getMessage()"] , exception : None , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/BackgroundJob/BackgroundScanner.php" , line : 95usize , placeholders : & [] , exception : None , regex : "^Start background scan$" , },
@ -37,9 +22,24 @@ pub const STATEMENTS: &[crate::LoggingStatement] = &[
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/BackgroundJob/BackgroundScanner.php" , line : 153usize , placeholders : & ["__METHOD__" , "$e->getMessage()"] , exception : None , regex : "^(.*), exception: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/BackgroundJob/BackgroundScanner.php" , line : 180usize , placeholders : & ["$batchSize"] , exception : None , regex : "^Batch size is: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/BackgroundJob/BackgroundScanner.php" , line : 288usize , placeholders : & ["$file->getId()"] , exception : None , regex : "^Scanning file with fileid: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/AvirWrapper.php" , line : 114usize , placeholders : & ["$e->getMessage()"] , exception : None , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Warn , path : "/lib/AvirWrapper.php" , line : 173usize , placeholders : & ["$status->getDetails()" , "$owner" , "$path"] , exception : None , regex : "^Infected file deleted\\. (.*) Account: (.*) Path: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Error , path : "/lib/AvirWrapper.php" , line : 188usize , placeholders : & ["$status->getDetails()" , "$path" , "$owner"] , exception : None , regex : "^Infected file deleted\\. (.*) File: (.*) Account: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/AvirWrapper.php" , line : 191usize , placeholders : & ["$this->l10n->t(\n\t\t\t\t'Virus %s is detected in the file. Upload cannot be completed.',\n\t\t\t\t$status->getDetails()\n\t\t\t)"] , exception : Some ("OCP\\Files\\InvalidContentException") , regex : "^(.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Db/ItemMapper.php" , line : 40usize , placeholders : & [] , exception : Some ("InvalidArgumentException") , regex : "^$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalKaspersky.php" , line : 58usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^The Kaspersky port and host are not set up\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/ExternalKaspersky.php" , line : 90usize , placeholders : & ["$response"] , exception : None , regex : "^Response :: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ScannerFactory.php" , line : 52usize , placeholders : & ["$avMode"] , exception : Some ("InvalidArgumentException") , regex : "^Application is misconfigured\\. Please check the settings at the admin page\\. Invalid mode: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/LocalClam.php" , line : 41usize , placeholders : & ["$this->avPath"] , exception : Some ("RuntimeException") , regex : "^The antivirus executable could not be found at (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/LocalClam.php" , line : 60usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Error starting process$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/LocalClam.php" , line : 74usize , placeholders : & ["$result" , "$output"] , exception : None , regex : "^Exit code :: (.*) Response :: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ICAP.php" , line : 63usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^The ICAP port and host are not set up\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ICAP.php" , line : 139usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Invalid response from ICAP server$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/ScannerBase.php" , line : 178usize , placeholders : & [] , exception : None , regex : "^reinit scanner$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Warn , path : "/lib/Scanner/ScannerBase.php" , line : 191usize , placeholders : & [] , exception : None , regex : "^Failed to write a chunk\\. Check if Stream Length matches StreamMaxLength in anti virus daemon settings$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalClam.php" , line : 41usize , placeholders : & ["$avSocket" , "$errstr" , "$errno"] , exception : Some ("RuntimeException") , regex : "^Cannot connect to \"(.*)\": (.*) \\(code (.*)\\)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalClam.php" , line : 47usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^The ClamAV port and host are not set up\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/Scanner/ExternalClam.php" , line : 51usize , placeholders : & ["$avHost" , "$avPort"] , exception : Some ("RuntimeException") , regex : "^Could not connect to ClamAV via (.*):(.*)\\. Please check that ClamAV is running and reachable\\.$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Debug , path : "/lib/Scanner/ExternalClam.php" , line : 65usize , placeholders : & ["$response"] , exception : None , regex : "^Response :: (.*)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ResponseParser.php" , line : 58usize , placeholders : & [] , exception : Some ("RuntimeException") , regex : "^Empty ICAP response$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ResponseParser.php" , line : 63usize , placeholders : & ["$icapHeader"] , exception : Some ("RuntimeException") , regex : "^Unknown ICAP response: \"(.*)\"$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ICAPTlsClient.php" , line : 63usize , placeholders : & ["$this->host" , "$this->port" , "$errorMessage" , "$errorCode"] , exception : Some ("RuntimeException") , regex : "^Cannot connect to \"tls://(.*):(.*)\": (.*) \\(code (.*)\\)$" , },
crate :: LoggingStatement { level : crate :: LogLevel :: Exception , path : "/lib/ICAP/ICAPClient.php" , line : 73usize , placeholders : & ["$this->host" , "$this->port" , "$errorMessage" , "$errorCode"] , exception : Some ("RuntimeException") , regex : "^Cannot connect to \"tcp://(.*):(.*)\": (.*) \\(code (.*)\\)$" , },
];

30
data/src/data/mod.rs Normal file
View file

@ -0,0 +1,30 @@
use crate::LoggingStatement;
mod deck_1_13;
mod files_accesscontrol_1_19;
mod files_antivirus_5_5;
mod server_29;
pub const MIN_VERSIONS: &[(&str, &str)] = &[
("deck", "1.13"),
("files_accesscontrol", "1.19"),
("files_antivirus", "5.5"),
("server", "29"),
];
pub const MAX_VERSIONS: &[(&str, &str)] = &[
("deck", "1.13"),
("files_accesscontrol", "1.19"),
("files_antivirus", "5.5"),
("server", "29"),
];
pub fn get_statements_for(name: &str, version: &str) -> Option<(&'static str, &'static [LoggingStatement])> {
match (name, version) {
("deck", "1.13") => Some(("/apps/deck", deck_1_13::STATEMENTS)),
("files_accesscontrol", "1.19") => Some(("/apps/files_accesscontrol", files_accesscontrol_1_19::STATEMENTS)),
("files_antivirus", "5.5") => Some(("/apps/files_antivirus", files_antivirus_5_5::STATEMENTS)),
("server", "29") => Some(("", server_29::STATEMENTS)),
_ => None,
}
}

File diff suppressed because it is too large Load diff

View file

@ -2,4 +2,91 @@ mod data;
mod types;
pub use data::*;
use std::borrow::Cow;
pub use types::*;
use version_compare::{compare, Cmp};
pub struct StatementList {
statements: Vec<(&'static str, &'static [LoggingStatement])>,
}
impl StatementList {
pub fn new(statements: Vec<(&'static str, &'static [LoggingStatement])>) -> StatementList {
StatementList { statements }
}
pub fn iter(&self) -> impl Iterator<Item = &'static LoggingStatement> + '_ {
self.statements
.iter()
.copied()
.flat_map(|(_, list)| list.iter())
}
pub fn get(&self, mut index: usize) -> Option<LoggingStatementWithPathPrefix> {
for (prefix, list) in &self.statements {
if index < list.len() {
return list
.get(index)
.map(|statement| statement.with_path_prefix(prefix));
}
index -= list.len()
}
None
}
}
pub struct SourceDefinition<'a> {
pub name: &'a str,
pub version: Cow<'a, str>,
}
fn try_get_statements_for(
name: &str,
version: &str,
) -> Option<(&'static str, &'static [LoggingStatement])> {
let min_version = MIN_VERSIONS
.iter()
.copied()
.find_map(|(min_name, version)| (min_name == name).then_some(version))?;
let max_version = MAX_VERSIONS
.iter()
.copied()
.find_map(|(min_name, version)| (min_name == name).then_some(version))?;
let mut version = if compare(version, min_version) == Ok(Cmp::Lt) {
min_version
} else if compare(version, max_version) == Ok(Cmp::Gt) {
max_version
} else {
version
};
loop {
if let Some(result) = get_statements_for(name, version) {
return Some(result);
}
if let Some((looser, _)) = version.rsplit_once('.') {
version = looser;
} else {
return None;
}
}
}
pub fn default_apps() -> impl Iterator<Item = SourceDefinition<'static>> {
MAX_VERSIONS.iter().copied().filter_map(|(name, version)| {
(name != "server").then_some(SourceDefinition {
name,
version: version.into(),
})
})
}
pub fn get_statements<'a, I: Iterator<Item = SourceDefinition<'a>>>(sources: I) -> StatementList {
StatementList::new(
sources
.into_iter()
.flat_map(|def| try_get_statements_for(def.name, def.version.as_ref()))
.collect(),
)
}

20
flake.lock generated
View file

@ -48,11 +48,11 @@
]
},
"locked": {
"lastModified": 1718727675,
"narHash": "sha256-uFsCwWYI2pUpt0awahSBorDUrUfBhaAiyz+BPTS2MHk=",
"lastModified": 1721727458,
"narHash": "sha256-r/xppY958gmZ4oTfLiHN0ZGuQ+RSTijDblVgVLFi1mw=",
"owner": "nix-community",
"repo": "naersk",
"rev": "941ce6dc38762a7cfb90b5add223d584feed299b",
"rev": "3fb418eaf352498f6b6c30592e3beb63df42ef11",
"type": "github"
},
"original": {
@ -63,16 +63,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1720535198,
"narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=",
"lastModified": 1721949857,
"narHash": "sha256-DID446r8KsmJhbCzx4el8d9SnPiE8qa6+eEQOJ40vR0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5",
"rev": "a1cc729dcbc31d9b0d11d86dc7436163548a9665",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-23.11",
"ref": "nixos-24.05",
"type": "indirect"
}
},
@ -92,11 +92,11 @@
]
},
"locked": {
"lastModified": 1721441897,
"narHash": "sha256-gYGX9/22tPNeF7dR6bWN5rsrpU4d06GnQNNgZ6ZiXz0=",
"lastModified": 1721960387,
"narHash": "sha256-o21ax+745ETGXrcgc/yUuLw1SI77ymp3xEpJt+w/kks=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "b7996075da11a2d441cfbf4e77c2939ce51506fd",
"rev": "9cbf831c5b20a53354fc12758abd05966f9f1699",
"type": "github"
},
"original": {

View file

@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11";
nixpkgs.url = "nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
naersk.inputs.nixpkgs.follows = "nixpkgs";
@ -76,7 +76,7 @@
lib.attrsets.genAttrs targets (target:
(cross-naersk'.buildPackage target) nearskOpt)
// {
inherit (pkgs) logging-extractor extracted-logs extracted-logs-rust logsmash;
inherit (pkgs) logging-extractor extracted-logs extracted-logs-rust logsmash extracted-logs-rust-mod;
check = msrvNaersk.buildPackage (nearskOpt
// {
mode = "check";

36
nix/data-mod.nix Normal file
View file

@ -0,0 +1,36 @@
{
packages,
lib,
writeTextDir,
}: let
inherit (builtins) head attrNames concatStringsSep replaceStrings;
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.lists) flatten last;
module_name = name: version: "${name}_${replaceStrings ["."] ["_"] version}";
matches_for = name: mapAttrsToList (version: data: ''("${name}", "${version}") => Some(("${data.prefix or ""}", ${module_name name version}::STATEMENTS)),'');
imports_for = name: mapAttrsToList (version: _: ''mod ${module_name name version};'');
matches = flatten (mapAttrsToList matches_for packages);
imports = flatten (mapAttrsToList imports_for packages);
min_versions = mapAttrsToList (name: versions: ''("${name}", "${head (attrNames versions)}"),'') packages;
max_versions = mapAttrsToList (name: versions: ''("${name}", "${last (attrNames versions)}"),'') packages;
code = ''
use crate::LoggingStatement;
${concatStringsSep "\n" imports}
pub const MIN_VERSIONS: &[(&str, &str)] = &[
${concatStringsSep "\n" min_versions}
];
pub const MAX_VERSIONS: &[(&str, &str)] = &[
${concatStringsSep "\n" max_versions}
];
pub fn get_statements_for(name: &str, version: &str) -> Option<(&'static str, &'static [LoggingStatement])> {
match (name, version) {
${concatStringsSep "\n" matches}
_ => None,
}
}
'';
in writeTextDir "mod.rs" code

View file

@ -18,13 +18,14 @@ in {
logging-extractor = final.callPackage ./logging-extractor.nix {};
extracted-logs-parts = mapAttrs (loggingFor "json") packages;
extracted-logs-parts-rust = mapAttrs (loggingFor "rust") packages;
extracted-logs-rust-mod = final.callPackage ./data-mod.nix {inherit packages;};
extracted-logs = symlinkJoin {
name = "extracted-logs";
paths = flatten (map attrValues (attrValues final.extracted-logs-parts));
};
extracted-logs-rust = symlinkJoin {
name = "extracted-logs";
paths = flatten (map attrValues (attrValues final.extracted-logs-parts-rust));
paths = (flatten (map attrValues (attrValues final.extracted-logs-parts-rust))) ++ [final.extracted-logs-rust-mod];
};
logsmash = final.callPackage ./package.nix {};
}

View file

@ -35,21 +35,24 @@
"1.19": {
"version": "1.19.1",
"url": "https://github.com/nextcloud-releases/files_accesscontrol/releases/download/v1.19.1/files_accesscontrol-v1.19.1.tar.gz",
"sha256": "sha256-e9387k5yn3lAZ7uN0YU8zNVkX8sCoNxyc5M3E3azo80="
"sha256": "sha256-e9387k5yn3lAZ7uN0YU8zNVkX8sCoNxyc5M3E3azo80=",
"prefix": "/apps/files_accesscontrol"
}
},
"files_antivirus": {
"5.5": {
"version": "5.5.7",
"url": "https://github.com/nextcloud-releases/files_antivirus/releases/download/v5.5.7/files_antivirus-v5.5.7.tar.gz",
"sha256": "sha256-Sg6AeqopaXrXrZ6loq+B5ZBjh2SHIflXaf6u/cIBqUo="
"sha256": "sha256-Sg6AeqopaXrXrZ6loq+B5ZBjh2SHIflXaf6u/cIBqUo=",
"prefix": "/apps/files_antivirus"
}
},
"deck": {
"1.13": {
"version": "1.31.1",
"url": "https://github.com/nextcloud-releases/deck/releases/download/v1.13.1/deck-v1.13.1.tar.gz",
"sha256": "sha256-AQV2JeSrQcPSh2J2oG/Kbrh2Qo/nj1+orYJymDsQLDQ="
"sha256": "sha256-AQV2JeSrQcPSh2J2oG/Kbrh2Qo/nj1+orYJymDsQLDQ=",
"prefix": "/apps/deck"
}
}
}

View file

@ -17,15 +17,6 @@ pub struct LogLine {
}
impl LogLine {
pub fn major_version(&self) -> Option<u32> {
let major = self
.version
.split_once('.')
.map(|(major, _)| major)
.unwrap_or(self.version.as_str());
major.parse().ok()
}
pub fn index(&self) -> u64 {
let mut hasher = AHasher::default();
self.message.hash(&mut hasher);

View file

@ -5,8 +5,9 @@ use crate::logline::LogLine;
use crate::matcher::{MatchResult, Matcher};
use crate::ui::run_ui;
use clap::Parser;
use logsmash_data::{get_statements, MAX_VERSION};
use logsmash_data::{default_apps, get_statements, SourceDefinition};
use main_error::MainResult;
use std::borrow::Cow;
use std::collections::HashMap;
use std::iter::once;
@ -44,7 +45,14 @@ fn main() -> MainResult {
}
};
let statements = get_statements(first_parsed.major_version().unwrap_or(MAX_VERSION));
let server_version = first_parsed.version;
let statements = get_statements(
once(SourceDefinition {
name: "server",
version: Cow::Owned(server_version.to_string()),
})
.chain(default_apps()),
);
let matcher = Matcher::new(&statements);
let lines = once(first).chain(lines);