Skip to content

Commit

Permalink
chore: release v0.4.12-1
Browse files Browse the repository at this point in the history
Add logging to analyse error caught by sentry
  • Loading branch information
DutchmanNL committed Aug 26, 2021
1 parent 1f076e6 commit 2724fc3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 8 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,11 @@ When the adapter crashes or any other Code error happens, this error message tha
-->
## Changelog

### 0.4.12-1 (2021-08-26)
* (DutchmanNL) Add logging to analyse error caught by sentry

### 0.4.12-0 (2021-08-17) Add option to use alias
* (DutchmanNL) Add possibility use an alternative name (alias)
* (DutchmanNL) Add possibility to use an alternative name (alias)

### 0.4.11 (2021-08-16)
* (DutchmanNL) Improve log/error messages at adapter start
Expand Down
2 changes: 1 addition & 1 deletion admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
pricesDefinition = settings.pricesDefinition || [];
onChange(false);

// Read values for drop down menu of unit configuraiton
// Read values for drop down menu of unit configuration
for (const cath in units) {
for (const array in units[cath]) {
for (const unit in units[cath][array]) {
Expand Down
14 changes: 13 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
{
"common": {
"name": "sourceanalytix",
"version": "0.4.12-0",
"version": "0.4.12-1",
"news": {
"0.4.12-1": {
"en": "Add logging to analyse error caught by sentry",
"de": "Fügen Sie Protokollierung hinzu, um Fehler zu analysieren, die von der Wache erfasst wurden",
"ru": "Добавить журнал для анализа ошибок, обнаруженных часовым",
"pt": "Adicione o registro para analisar o erro detectado pelo sentinela",
"nl": "Logboekregistratie toevoegen om door schildwacht gevangen fout te analyseren",
"fr": "Ajouter la journalisation pour analyser l'erreur détectée par sentinelle",
"it": "Aggiungi la registrazione per analizzare l'errore rilevato dalla sentinella",
"es": "Agregar registro para analizar el error detectado por el centinela",
"pl": "Dodaj logowanie, aby przeanalizować błąd wykryty przez wartownika",
"zh-cn": "添加日志以分析哨兵捕获的错误"
},
"0.4.12-0": {
"en": "Add possibility use an alternative name (alias)",
"de": "Möglichkeit hinzufügen alternativen Namen (Alias) verwenden",
Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Sourceanalytix extends utils.Adapter {
if (!history[id][this.namespace] || history[id][this.namespace].enabled === false) {
// Not SourceAnalytix relevant ignore
} else {
this.log.debug(`SourceAnalytix enabled state found ${id} calling buildStateDetailsArray`);
this.log.debug(`SourceAnalytix enabled state found ${id}`);
this.activeStates[id] = {};
}
}
Expand Down Expand Up @@ -1244,7 +1244,7 @@ class Sourceanalytix extends utils.Adapter {
this.log.debug(`[calculationHandler] ${stateID} set cumulated value ${reading}`);
// Update current value to memory
this.activeStates[stateID]['calcValues'].cumulativeValue = reading;
this.visWidgetJson[stateID].cumulativeValue = reading;
// this.visWidgetJson[stateID].cumulativeValue = reading;
this.log.debug(`[calculationHandler] ActiveStatesArray ${JSON.stringify(this.activeStates[stateID])})`);

// Write current reading at device root
Expand Down Expand Up @@ -1464,7 +1464,7 @@ class Sourceanalytix extends utils.Adapter {


} catch (error) {
this.errorHandling(`[calculationHandler] ${stateID}`, error);
this.errorHandling(`[calculationHandler] ${stateID} with config ${this.activeStates[stateID]}`, error);
}

}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.sourceanalytix",
"version": "0.4.12-0",
"version": "0.4.12-1",
"description": "SourceAnalytix",
"author": {
"name": "DutchmanNL",
Expand Down

0 comments on commit 2724fc3

Please sign in to comment.