Adding Logs
This commit is contained in:
parent
2fdb4cc84f
commit
d6f4dd4425
@ -144,6 +144,7 @@ export class BeckhoffPlc extends BasePlcModule implements IPLCModule {
|
||||
const _this = this;
|
||||
|
||||
this._logger = getNopeLogger("beckhoff-plc-interface-" + this.identifier);
|
||||
this._logger.warn("creating beckhoff-plc-interface-" + this.identifier);
|
||||
|
||||
// Initialize the default values:
|
||||
this.initialized.setContent(false);
|
||||
@ -153,6 +154,7 @@ export class BeckhoffPlc extends BasePlcModule implements IPLCModule {
|
||||
// Define a Beavior if the ads Options have been setted.
|
||||
this.adsOptions.subscribe((options) => {
|
||||
try {
|
||||
this._logger.warn("Adapting ADS-Options to", options);
|
||||
if (this._client) {
|
||||
this._logger.warn(
|
||||
"ADS-Client " + _this.identifier + " is Running. Shutting Down."
|
||||
|
Loading…
Reference in New Issue
Block a user