We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6361635 commit bbd8b27Copy full SHA for bbd8b27
packages/server/src/portScanner.ts
@@ -79,7 +79,11 @@ export const createPortScanner = (scanInterval: number = 5000): PortScanner => {
79
logger.trace("scanning ports");
80
scan((error) => {
81
if (error) {
82
- logger.error(`Port scanning will not be available: ${error.message}.`);
+ if ((error as NodeJS.ErrnoException).code === "ENOENT") {
83
+ logger.warn("Port scanning will not be available because netstat is not installed");
84
+ } else {
85
+ logger.warn(`Port scanning will not be available: ${error.message}`);
86
+ }
87
disposed = true;
88
} else if (!disposed) {
89
lastTimeout = setTimeout(doInterval, scanInterval);
0 commit comments