Skip to content

Commit

Permalink
172 dockter 1 (#174)
Browse files Browse the repository at this point in the history
* #172 Updated messages

* #172 Savepoint

* #172 Removed 59xx series messages

* #172 Update messages

* #172 Update messages

* #172 Update messages
  • Loading branch information
docktermj authored Jun 25, 2024
1 parent 3c7f9a4 commit 085bb2f
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 180 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning].

-

## [0.13.5] - 2024-06-25

### Changed in 0.13.5

- Updated messages

## [0.13.4] - 2024-06-13

### Changed in 0.13.4
Expand Down
37 changes: 5 additions & 32 deletions szconfig/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ var IDMessages = map[int]string{
22: "Exit " + Prefix + "ImportConfig(%s) returned (%v, %v).",
23: "Enter " + Prefix + "Initialize(%s, %s, %d).",
24: "Exit " + Prefix + "Initialize(%s, %s, %d) returned (%v).",
701: "Enter " + Prefix + "GetSdkID().",
702: "Exit " + Prefix + "GetSdkID() returned (%s).",
703: "Enter " + Prefix + "RegisterObserver(%s).",
704: "Exit " + Prefix + "RegisterObserver(%s) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%v).",
706: "Exit " + Prefix + "SetLogLevel(%v) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%s).",
706: "Exit " + Prefix + "SetLogLevel(%s) returned (%v).",
707: "Enter " + Prefix + "UnregisterObserver(%s).",
708: "Exit " + Prefix + "UnregisterObserver(%s) returned (%v).",
4001: Prefix + "G2Config_addDataSource(%v, %s) failed. Return code: %d",
Expand All @@ -55,40 +53,15 @@ var IDMessages = map[int]string{
4008: Prefix + "G2Config_listDataSources(%d) failed. Return code: %d",
4009: Prefix + "G2Config_load(%s) failed. Return code: %d",
4010: Prefix + "G2Config_save(%v) failed. Return code: %d",
5901: "During test setup, call to messagelogger.NewSenzingApiLogger() failed.",
5902: "During test setup, call to szengineconfigurationjson.BuildSimpleSystemConfigurationJsonViaMap() failed.",
5903: "During test setup, call to szengine.Initialize() failed.",
5904: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5905: "During test setup, call to szengine.Destroy() failed.",
5906: "During test setup, call to szconfig.Initialize() failed.",
5907: "During test setup, call to szconfig.Create() failed.",
5908: "During test setup, call to szconfig.AddDataSource() failed.",
5909: "During test setup, call to szconfig.GetJsonString() failed.",
5910: "During test setup, call to szconfig.Close() failed.",
5911: "During test setup, call to szconfig.Destroy() failed.",
5912: "During test setup, call to szconfigmanager.Initialize() failed.",
5913: "During test setup, call to szconfigmanager.AddConfig() failed.",
5914: "During test setup, call to szconfigmanager.SetDefaultConfigID() failed.",
5915: "During test setup, call to szconfigmanager.Destroy() failed.",
5916: "During test setup, call to szengine.Initialize() failed.",
5917: "During test setup, call to szengine.AddRecord() failed.",
5918: "During test setup, call to szengine.Destroy() failed.",
5920: "During test setup, call to setupSenzingConfig() failed.",
5921: "During test setup, call to setupPurgeRepository() failed.",
5922: "During test setup, call to setupAddRecords() failed.",
5931: "During test setup, call to szengine.Initialize() failed.",
5932: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5933: "During test setup, call to szengine.Destroy() failed.",
8001: Prefix + "AddDataSource",
8002: Prefix + "CloseConfig",
8003: Prefix + "CreateConfig",
8004: Prefix + "DeleteDataSource",
8005: Prefix + "Destroy",
8006: Prefix + "ExportConfig",
8007: Prefix + "GetDataSources",
8008: Prefix + "ImportConfig",
8009: Prefix + "Initialize",
8701: Prefix + "GetSdkID",
8007: Prefix + "Initialize",
8008: Prefix + "GetDataSources",
8009: Prefix + "ImportConfig",
8702: Prefix + "RegisterObserver",
8703: Prefix + "SetLogLevel",
8704: Prefix + "UnregisterObserver",
Expand Down
46 changes: 9 additions & 37 deletions szconfigmanager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ var IDMessages = map[int]string{
6: "Exit " + Prefix + "Destroy() returned (%v).",
7: "Enter " + Prefix + "GetConfig(%d).",
8: "Exit " + Prefix + "GetConfig(%d) returned (%s, %v).",
9: "Enter " + Prefix + "GetConfigList().",
10: "Exit " + Prefix + "GetConfigList() returned (%s, %v).",
9: "Enter " + Prefix + "GetConfigs().",
10: "Exit " + Prefix + "GetConfigs() returned (%s, %v).",
11: "Enter " + Prefix + "GetDefaultConfigID().",
12: "Exit " + Prefix + "GetDefaultConfigID() returned (%d, %v).",
13: "Enter " + Prefix + "GetLastException().",
Expand All @@ -35,56 +35,28 @@ var IDMessages = map[int]string{
20: "Exit " + Prefix + "ReplaceDefaultConfigID(%d, %d) returned (%v).",
21: "Enter " + Prefix + "SetDefaultConfigID(%d).",
22: "Exit " + Prefix + "SetDefaultConfigID(%d) returned (%v).",
701: "Enter " + Prefix + "GetSdkID().",
702: "Exit " + Prefix + "GetSdkID() returned (%s).",
703: "Enter " + Prefix + "RegisterObserver(%s).",
704: "Exit " + Prefix + "RegisterObserver(%s) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%v).",
706: "Exit " + Prefix + "SetLogLevel(%v) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%s).",
706: "Exit " + Prefix + "SetLogLevel(%s) returned (%v).",
707: "Enter " + Prefix + "UnregisterObserver(%s).",
708: "Exit " + Prefix + "UnregisterObserver(%s) returned (%v).",
4001: Prefix + "G2ConfigMgr_addConfig(%s, %s) failed. Return code: %d",
4002: Prefix + "G2ConfigMgr_destroy() failed. Return code: %d",
4003: Prefix + "G2ConfigMgr_getConfig(%d) failed. Return code: %d",
4004: Prefix + "G2ConfigMgr_getConfigList() failed. Return code: %d",
4005: Prefix + "G2ConfigMgr_getDefaultConfigID() failed. Return code: %d",
4006: Prefix + "G2ConfigMgr_getLastException() failed. Return code: %d",
4007: Prefix + "G2ConfigMgr_init(%s, %s, %d) failed. Return code: %d",
4008: Prefix + "G2ConfigMgr_replaceDefaultConfigID(%d, %d) failed. Return code: %d",
4009: Prefix + "G2ConfigMgr_setDefaultConfigID(%d) failed. Return code: %d",
5901: "During test setup, call to messagelogger.NewSenzingApiLogger() failed.",
5902: "During test setup, call to szengineconfigurationjson.BuildSimpleSystemConfigurationJsonViaMap() failed.",
5903: "During test setup, call to szengine.Initialize() failed.",
5904: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5905: "During test setup, call to szengine.Destroy() failed.",
5906: "During test setup, call to szconfig.Initialize() failed.",
5907: "During test setup, call to szconfig.Create() failed.",
5908: "During test setup, call to szconfig.AddDataSource() failed.",
5909: "During test setup, call to szconfig.GetJsonString() failed.",
5910: "During test setup, call to szconfig.Close() failed.",
5911: "During test setup, call to szconfig.Destroy() failed.",
5912: "During test setup, call to szconfigmanager.Initialize() failed.",
5913: "During test setup, call to szconfigmanager.AddConfig() failed.",
5914: "During test setup, call to szconfigmanager.SetDefaultConfigID() failed.",
5915: "During test setup, call to szconfigmanager.Destroy() failed.",
5916: "During test setup, call to szengine.Initialize() failed.",
5917: "During test setup, call to szengine.AddRecord() failed.",
5918: "During test setup, call to szengine.Destroy() failed.",
5920: "During test setup, call to setupSenzingConfig() failed.",
5921: "During test setup, call to setupPurgeRepository() failed.",
5922: "During test setup, call to setupAddRecords() failed.",
5931: "During test setup, call to szengine.Initialize() failed.",
5932: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5933: "During test setup, call to szengine.Destroy() failed.",
4006: Prefix + "G2ConfigMgr_init(%s, %s, %d) failed. Return code: %d",
4007: Prefix + "G2ConfigMgr_replaceDefaultConfigID(%d, %d) failed. Return code: %d",
4008: Prefix + "G2ConfigMgr_setDefaultConfigID(%d) failed. Return code: %d",
8001: Prefix + "AddConfig",
8002: Prefix + "Destroy",
8003: Prefix + "GetConfig",
8004: Prefix + "GetConfigList",
8004: Prefix + "GetConfigs",
8005: Prefix + "GetDefaultConfigID",
8006: Prefix + "Initialize",
8007: Prefix + "ReplaceDefaultConfigIDd",
8007: Prefix + "ReplaceDefaultConfigID",
8008: Prefix + "SetDefaultConfigID",
8701: Prefix + "GetSdkID",
8702: Prefix + "RegisterObserver",
8703: Prefix + "SetLogLevel",
8704: Prefix + "UnregisterObserver",
Expand Down
50 changes: 11 additions & 39 deletions szdiagnostic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const Prefix = "szdiagnostic."

// Message templates for szdiagnostic implementations.
var IDMessages = map[int]string{
1: "Enter " + Prefix + "CheckDatabasePerformance(%d).",
2: "Exit " + Prefix + "CheckDatabasePerformance(%d) returned (%s, %v).",
1: "Enter " + Prefix + "CheckDatastorePerformance(%d).",
2: "Exit " + Prefix + "CheckDatastorePerformance(%d) returned (%s, %v).",
3: "Enter " + Prefix + "ClearLastException().",
4: "Exit " + Prefix + "ClearLastException() returned (%v).",
5: "Enter " + Prefix + "Destroy().",
Expand All @@ -33,55 +33,27 @@ var IDMessages = map[int]string{
18: "Exit " + Prefix + "PurgeRepository() returned (%v).",
19: "Enter " + Prefix + "Reinitialize(%d).",
20: "Exit " + Prefix + "Reinitialize(%d) returned (%v).",
701: "Enter " + Prefix + "GetSdkID().",
702: "Exit " + Prefix + "GetSdkID() returned (%s).",
703: "Enter " + Prefix + "RegisterObserver(%s).",
704: "Exit " + Prefix + "RegisterObserver(%s) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%v).",
706: "Exit " + Prefix + "SetLogLevel(%v) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%s).",
706: "Exit " + Prefix + "SetLogLevel(%s) returned (%v).",
707: "Enter " + Prefix + "UnregisterObserver(%s).",
708: "Exit " + Prefix + "UnregisterObserver(%s) returned (%v).",
4001: Prefix + "G2Diagnostic_checkDatastorePerformance(%d) failed. Return code: %d",
4002: Prefix + "G2Diagnostic_destroy() failed. Return code: %d",
4003: Prefix + "G2Diagnostic_getDatastoreInfo() failed. Return code: %d",
4004: Prefix + "G2Diagnostic_getFeature(%d) failed. Return code: %d",
4005: Prefix + "G2Diagnostic_getLastException() failed. Return code: %d",
4006: Prefix + "G2Diagnostic_init(%s, %s, %d) failed. Return code: %d",
4007: Prefix + "G2Diagnostic_initWithConfigID(%s, %s, %d, %d) failed. Return code: %d",
4008: Prefix + "G2Diagnostic_purgeRepository() failed. Return Code: %d",
4009: Prefix + "G2Diagnostic_reinit(%d) failed. Return Code: %d",
5901: "During test setup, call to messagelogger.NewSenzingApiLogger() failed.",
5902: "During test setup, call to szengineconfigurationjson.BuildSimpleSystemConfigurationJsonViaMap() failed.",
5903: "During test setup, call to szengine.Initialize() failed.",
5904: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5905: "During test setup, call to szengine.Destroy() failed.",
5906: "During test setup, call to szconfig.Initialize() failed.",
5907: "During test setup, call to szconfig.Create() failed.",
5908: "During test setup, call to szconfig.AddDataSource() failed.",
5909: "During test setup, call to szconfig.GetJsonString() failed.",
5910: "During test setup, call to szconfig.Close() failed.",
5911: "During test setup, call to szconfig.Destroy() failed.",
5912: "During test setup, call to szconfigmanager.Initialize() failed.",
5913: "During test setup, call to szconfigmanager.AddConfig() failed.",
5914: "During test setup, call to szconfigmanager.SetDefaultConfigID() failed.",
5915: "During test setup, call to szconfigmanager.Destroy() failed.",
5916: "During test setup, call to szengine.Initialize() failed.",
5917: "During test setup, call to szengine.AddRecord() failed.",
5918: "During test setup, call to szengine.Destroy() failed.",
5920: "During test setup, call to setupSenzingConfig() failed.",
5921: "During test setup, call to setupPurgeRepository() failed.",
5922: "During test setup, call to setupAddRecords() failed.",
5931: "During test setup, call to szengine.Initialize() failed.",
5932: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5933: "During test setup, call to szengine.Destroy() failed.",
8001: Prefix + "CheckDatabasePerformance",
4005: Prefix + "G2Diagnostic_init(%s, %s, %d) failed. Return code: %d",
4006: Prefix + "G2Diagnostic_initWithConfigID(%s, %s, %d, %d) failed. Return code: %d",
4007: Prefix + "G2Diagnostic_purgeRepository() failed. Return Code: %d",
4008: Prefix + "G2Diagnostic_reinit(%d) failed. Return Code: %d",
8001: Prefix + "CheckDatastorePerformance",
8002: Prefix + "Destroy",
8003: Prefix + "GetDatastoreInfo",
8004: Prefix + "GetFeature",
8005: Prefix + "Initialize",
8006: Prefix + "PurgeRepository",
8007: Prefix + "Reinitialize",
8701: Prefix + "GetSdkID",
8007: Prefix + "PurgeRepository",
8008: Prefix + "Reinitialize",
8702: Prefix + "RegisterObserver",
8703: Prefix + "SetLogLevel",
8704: Prefix + "UnregisterObserver",
Expand Down
45 changes: 9 additions & 36 deletions szengine/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ var IDMessages = map[int]string{
13: "Enter " + Prefix + "ExportCsvEntityReport(%s, %d).",
14: "Exit " + Prefix + "ExportCsvEntityReport(%s, %d) returned (%v, %v).",
15: "Enter " + Prefix + "ExportCsvEntityReportIterator(%s, %d).",
16: "Exit " + Prefix + "ExportCsvEntityReportIterator(%s, %d) returned (%v, %v).",
17: "Enter " + Prefix + "ExportJsonEntityReport(%d).",
18: "Exit " + Prefix + "ExportJsonEntityReport(%d) returned (%v, %v).",
19: "Enter " + Prefix + "ExportJsonEntityReportIterator(%d).",
20: "Exit " + Prefix + "ExportJsonEntityReportIterator(%d) returned (%v, %v).",
16: "Exit " + Prefix + "ExportCsvEntityReportIterator(%s, %d) returned (%v).",
17: "Enter " + Prefix + "ExportJSONEntityReport(%d).",
18: "Exit " + Prefix + "ExportJSONEntityReport(%d) returned (%v, %v).",
19: "Enter " + Prefix + "ExportJSONEntityReportIterator(%d).",
20: "Exit " + Prefix + "ExportJSONEntityReportIterator(%d) returned (%v).",
21: "Enter " + Prefix + "FetchNext(%v).",
22: "Exit " + Prefix + "FetchNext(%v) returned (%s, %v).",
23: "Enter " + Prefix + "FindInterestingEntitiesByEntityID(%s, %d).",
Expand Down Expand Up @@ -87,12 +87,10 @@ var IDMessages = map[int]string{
74: "Exit " + Prefix + "WhyRecordInEntity(%s, %s, %d) returned (%s, %v).",
75: "Enter " + Prefix + "WhyRecords(%s, %s, %s, %s, %d).",
76: "Exit " + Prefix + "WhyRecords(%s, %s, %s, %s, %d) returned (%s, %v).",
701: "Enter " + Prefix + "GetSdkID().",
702: "Exit " + Prefix + "GetSdkID() returned (%s).",
703: "Enter " + Prefix + "RegisterObserver(%s).",
704: "Exit " + Prefix + "RegisterObserver(%s) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%v).",
706: "Exit " + Prefix + "SetLogLevel(%v) returned (%v).",
705: "Enter " + Prefix + "SetLogLevel(%s).",
706: "Exit " + Prefix + "SetLogLevel(%s) returned (%v).",
707: "Enter " + Prefix + "UnregisterObserver(%s).",
708: "Exit " + Prefix + "UnregisterObserver(%s) returned (%v).",
4001: Prefix + "G2_addRecord(%s, %s, %s) failed. Return code: %d",
Expand Down Expand Up @@ -138,8 +136,8 @@ var IDMessages = map[int]string{
4041: Prefix + "G2_init(%s, %s, %d) failed. Return code: %d",
4042: Prefix + "G2_initWithConfigID(%s, %s, %d, %d) failed. Return code: %d",
4043: Prefix + "G2_primeEngine() failed. Return code: %d",
4044: Prefix + "G2_processRedoRecord() failed. Return code: %d",
4045: Prefix + "G2_processRedoRecordWithInfo() failed. Return code: %d",
4044: Prefix + "G2_processRedoRecord(%s) failed. Return code: %d",
4045: Prefix + "G2_processRedoRecordWithInfo(%s) failed. Return code: %d",
4046: Prefix + "G2_reevaluateEntity(%d, %d) failed. Return code: %d",
4047: Prefix + "G2_reevaluateEntityWithInfo(%d, %d) failed. Return code: %d",
4048: Prefix + "G2_reevaluateRecord(%s, %s, %d) failed. Return code: %d",
Expand All @@ -155,30 +153,6 @@ var IDMessages = map[int]string{
4058: Prefix + "G2_whyRecordInEntity_V2(%s, %s, %d) failed. Return code: %d",
4059: Prefix + "G2_whyRecords(%s, %s, %s, %s) failed. Return code: %d",
4060: Prefix + "G2_whyRecords_V2(%s, %s, %s, %s, %d) failed. Return code: %d",
5901: "During test setup, call to messagelogger.NewSenzingApiLogger() failed.",
5902: "During test setup, call to szengineconfigurationjson.BuildSimpleSystemConfigurationJsonViaMap() failed.",
5903: "During test setup, call to szengine.Initialize() failed.",
5904: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5905: "During test setup, call to szengine.Destroy() failed.",
5906: "During test setup, call to szconfig.Initialize() failed.",
5907: "During test setup, call to szconfig.Create() failed.",
5908: "During test setup, call to szconfig.AddDataSource() failed.",
5909: "During test setup, call to szconfig.GetJsonString() failed.",
5910: "During test setup, call to szconfig.Close() failed.",
5911: "During test setup, call to szconfig.Destroy() failed.",
5912: "During test setup, call to szconfigmanager.Initialize() failed.",
5913: "During test setup, call to szconfigmanager.AddConfig() failed.",
5914: "During test setup, call to szconfigmanager.SetDefaultConfigID() failed.",
5915: "During test setup, call to szconfigmanager.Destroy() failed.",
5916: "During test setup, call to szengine.Initialize() failed.",
5917: "During test setup, call to szengine.AddRecord() failed.",
5918: "During test setup, call to szengine.Destroy() failed.",
5920: "During test setup, call to setupSenzingConfig() failed.",
5921: "During test setup, call to setupPurgeRepository() failed.",
5922: "During test setup, call to setupAddRecords() failed.",
5931: "During test setup, call to szengine.Initialize() failed.",
5932: "During test setup, call to szdiagnostic.PurgeRepository() failed.",
5933: "During test setup, call to szengine.Destroy() failed.",
8001: Prefix + "AddRecord",
8002: Prefix + "CloseExport",
8003: Prefix + "CountRedoRecords",
Expand Down Expand Up @@ -213,7 +187,6 @@ var IDMessages = map[int]string{
8032: Prefix + "WhyEntities",
8033: Prefix + "WhyRecordInEntity",
8034: Prefix + "WhyRecords",
8701: Prefix + "GetSdkID",
8702: Prefix + "RegisterObserver",
8703: Prefix + "SetLogLevel",
8704: Prefix + "UnregisterObserver",
Expand Down
Loading

0 comments on commit 085bb2f

Please sign in to comment.