ioBroker.js-controller icon indicating copy to clipboard operation
ioBroker.js-controller copied to clipboard

Write meaning of more exit codes in log and improve existing ones

Open AlCalzone opened this issue 7 years ago • 5 comments

Currently, when an adapter restarts or quits, the numeric error code is written in the log and sometimes a meaning is added. Without looking in the sources, one does not always know what that means. E.g.:

system.adapter.cloud.0 terminated with code 156 ()

Some examples:

Code 0

Current explanation: OK Should be: Planned shutdown or restart

Code 7

Current explanation: Adapter already running Should be: Another process for this instance is running in the background.

Code 156 (-100 in code)

Current explanation: none

Problematic ones (like code 7) should include a link to the documentation with tips how to solve it. Should be: Scheduled restart

AlCalzone avatar Aug 14 '18 09:08 AlCalzone

How do we want to proceed here?

Apollon77 avatar Apr 09 '20 06:04 Apollon77

Anything else we should add for the exit codes or ok now?

foxriver76 avatar Jan 23 '21 22:01 foxriver76

@AlCalzone What do you think?

Apollon77 avatar Jan 23 '21 23:01 Apollon77

What are we logging now?

AlCalzone avatar Jan 24 '21 08:01 AlCalzone

aaahhh ok, np I think there is not much changed ... so idea would be to add "exit code specific error infos texts"?

Apollon77 avatar Jan 24 '21 11:01 Apollon77