repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure 1:1 mapping between charging station instance and its OCPP services
[e-mobility-charging-stations-simulator.git]
/
src
/
performance
/
storage
/
Storage.ts
diff --git
a/src/performance/storage/Storage.ts
b/src/performance/storage/Storage.ts
index 80906699dff10ce6667f05a8c73eb59e53de6208..db33a694777e5efe0e415bf96c2874b7ad434cba 100644
(file)
--- a/
src/performance/storage/Storage.ts
+++ b/
src/performance/storage/Storage.ts
@@
-5,7
+5,7
@@
import { DBName, StorageType } from '../../types/Storage';
import Statistics from '../../types/Statistics';
import { URL } from 'url';
import Utils from '../../utils/Utils';
import Statistics from '../../types/Statistics';
import { URL } from 'url';
import Utils from '../../utils/Utils';
-import
getL
ogger from '../../utils/Logger';
+import
l
ogger from '../../utils/Logger';
export abstract class Storage {
protected readonly storageUri: URL;
export abstract class Storage {
protected readonly storageUri: URL;
@@
-18,7
+18,7
@@
export abstract class Storage {
}
protected handleDBError(type: StorageType, error: Error, table?: string): void {
}
protected handleDBError(type: StorageType, error: Error, table?: string): void {
-
getLogger()
.error(`${this.logPrefix} ${this.getDBNameFromStorageType(type)} error '${error.message}'${(!Utils.isNullOrUndefined(table) || !table) && ` in table or collection '${table}'`}: %j`, error);
+
logger
.error(`${this.logPrefix} ${this.getDBNameFromStorageType(type)} error '${error.message}'${(!Utils.isNullOrUndefined(table) || !table) && ` in table or collection '${table}'`}: %j`, error);
}
protected getDBNameFromStorageType(type: StorageType): DBName {
}
protected getDBNameFromStorageType(type: StorageType): DBName {