Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
169 lines (145 sloc) 6.64 KB
/*
Copyright 2018, Cossack Labs Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package logging
// Event codes for different events in Acra services, splitted by groups and service.
const (
// 100 .. 200 some events
EventCodeGeneral = 100
// 500 .. 600 errors
EventCodeErrorGeneral = 500
EventCodeErrorWrongParam = 501
EventCodeErrorInvalidClientID = 502
// processes
EventCodeErrorCantStartService = 505
EventCodeErrorCantForkProcess = 506
EventCodeErrorWrongConfiguration = 507
EventCodeErrorCantReadServiceConfig = 508
EventCodeErrorCantCloseConnectionToService = 509
// keys
EventCodeErrorCantInitKeyStore = 510
EventCodeErrorCantReadKeys = 511
EventCodeErrorCantLoadMasterKey = 512
EventCodeErrorCantInitPrivateKeysEncryptor = 513
// system events
EventCodeErrorCantGetFileDescriptor = 520
EventCodeErrorCantOpenFileByDescriptor = 521
EventCodeErrorFileDescriptionIsNotValid = 522
EventCodeErrorCantRegisterSignalHandler = 523
// transport / networks
EventCodeErrorCantStartListenConnections = 530
EventCodeErrorCantStopListenConnections = 531
EventCodeErrorTransportConfiguration = 532
EventCodeErrorCantAcceptNewConnections = 533
EventCodeErrorCantStartConnection = 534
EventCodeErrorCantHandleSecureSession = 535
EventCodeErrorCantCloseConnection = 536
EventCodeErrorCantInitClientSession = 537
EventCodeErrorCantWrapConnection = 538
EventCodeErrorConnectionDroppedByTimeout = 539
// database
EventCodeErrorCantConnectToDB = 540
EventCodeErrorCantCloseConnectionDB = 541
// AcraWebconfig
EventCodeErrorCantReadTemplate = 550
EventCodeErrorRequestMethodNotAllowed = 551
EventCodeErrorCantParseRequestData = 552
EventCodeErrorCantGetCurrentConfig = 553
EventCodeErrorCantSetNewConfig = 554
EventCodeErrorCantHashPassword = 555
EventCodeErrorCantGetAuthData = 556
EventCodeErrorCantParseAuthData = 557
EventCodeErrorCantDumpConfig = 558
// acracensor
EventCodeErrorCensorQueryIsNotAllowed = 560
EventCodeErrorCensorSetupError = 561
EventCodeErrorCensorBackgroundError = 562
EventCodeErrorCensorQueryParseError = 563
EventCodeErrorCensorIOError = 564
EventCodeErrorCensorQuerySerializeError = 565
EventCodeErrorCensorWriterMemoryError = 566
// response connector
EventCodeErrorResponseConnectorCantWriteToDB = 570
EventCodeErrorResponseConnectorCantReadFromClient = 571
EventCodeErrorResponseConnectorCantWriteToClient = 572
EventCodeErrorResponseConnectorCantReadFromServer = 573
EventCodeErrorResponseConnectorCantWriteToServer = 574
EventCodeErrorResponseConnectorCantProcessColumn = 575
EventCodeErrorResponseConnectorCantProcessRow = 576
// decryptor
EventCodeErrorCantInitDecryptor = 580
EventCodeErrorDecryptorCantDecryptBinary = 581
EventCodeErrorDecryptorCantSkipBeginInBlock = 582
EventCodeErrorDecryptorCantHandleRecognizedPoisonRecord = 583
EventCodeErrorDecryptorCantInitializeTLS = 584
EventCodeErrorDecryptorCantSetDeadlineToClientConnection = 585
EventCodeErrorDecryptorCantDecryptSymmetricKey = 586
EventCodeErrorDecryptorRecognizedPoisonRecord = 587
EventCodeErrorDecryptorReadPacket = 588
EventCodeErrorDecryptorCantCheckPoisonRecord = 589
// http api
EventCodeErrorHTTPAPICantGenerateZone = 590
EventCodeErrorHTTPAPICantLoadAuthKey = 591
EventCodeErrorHTTPAPICantLoadAuthData = 592
EventCodeErrorHTTPAPICantDecryptAuthData = 593
// mysql processing
EventCodeErrorProtocolProcessing = 600
// AcraTranslator
EventCodeErrorTranslatorCantHandleHTTPRequest = 700
EventCodeErrorTranslatorMethodNotAllowed = 701
EventCodeErrorTranslatorMalformedURL = 702
EventCodeErrorTranslatorVersionNotSupported = 703
EventCodeErrorTranslatorEndpointNotSupported = 704
EventCodeErrorTranslatorCantParseRequestBody = 705
EventCodeErrorTranslatorZoneIDMissing = 706
EventCodeErrorTranslatorCantDecryptAcraStruct = 707
EventCodeErrorTranslatorCantReturnResponse = 708
EventCodeErrorTranslatorCantCloseConnection = 709
EventCodeErrorTranslatorCantHandleHTTPConnection = 710
EventCodeErrorTranslatorCantWrapConnectionToSS = 711
EventCodeErrorTranslatorCantAcceptNewHTTPConnection = 712
EventCodeErrorTranslatorCantHandleGRPCConnection = 713
EventCodeErrorTranslatorClientIDMissing = 714
EventCodeErrorTranslatorCantAcceptNewGRPCConnection = 715
// tracing
EventCodeErrorTracingCantSendTrace = 800
EventCodeErrorTracingCantReadTrace = 801
EventCodeErrorJaegerInvalidParameters = 811
EventCodeErrorJaegerExporter = 812
// encryptor
EventCodeErrorEncryptQueryData = 900
EventCodeErrorEncryptorInitialization = 901
EventCodeErrorDataEncryptorInitialization = 902
EventCodeErrorEncryptorCantEncryptExpression = 903
EventCodeErrorCantEncryptData = 904
// metrics
EventCodeErrorPrometheusHTTPHandler = 1000
EventCodeErrorCantWrapConnectionWithTimer = 1001
// connection processing on acra-server side
EventCodeErrorGeneralConnectionProcessing = 1100
EventCodeErrorCreateFileFromDescriptor = 1101
// encoding/decoding
EventCodeErrorCodingCantDecodeHexData = 1200
EventCodeErrorCodingCantSerializePostgresqlPacket = 1201
EventCodeErrorCodingCantParsePostgresqlParseCommand = 1202
EventCodeErrorCodingPostgresqlUnexpectedPacket = 1203
EventCodeErrorCodingPostgresqlPacketHandlerInitiailization = 1204
EventCodeErrorCodingPostgresqlCantExtractQueryString = 1205
EventCodeErrorCodingPostgresqlCantGenerateErrorPacket = 1206
EventCodeErrorCodingPostgresqlCantParseColumnsDescription = 1207
EventCodeErrorCodingPostgresqlOctalEscape = 1208
EventCodeErrorCodingCantDecodeSQLValue = 1209
// network additional
EventCodeErrorNetworkWrite = 1300
EventCodeErrorNetworkFlush = 1301
EventCodeErrorNetworkTLSGeneral = 1302
)
You can’t perform that action at this time.