Skip to content

Commit

Permalink
fix(host-info): Add more verbose logging when getting host info fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Göran Sander committed Jul 3, 2024
1 parent fb68455 commit 41082ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ async function build(opts = {}) {
}
} catch (err) {
globals.logger.error(`CONFIG: Error initiating host info: ${err}`);
globals.logger.error(`CONFIG: Error initiating host info, stack trace: ${err.stack}`);
}

// Set up REST server, if enabled
Expand Down
1 change: 1 addition & 0 deletions src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ class Settings {
return hostInfo;
} catch (err) {
this.logger.error(`CONFIG: Getting host info: ${err}`);
this.logger.error(`CONFIG: Getting host info, stack trace: ${err.stack}`);
return null;
}
}
Expand Down

0 comments on commit 41082ab

Please sign in to comment.