Skip to content

Commit 6e11dde

Browse files
committed
fix: lazy-load log4js
1 parent dfe5b0d commit 6e11dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/debugger/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { Observable } from "rxjs-compat/bundles/rxjs-compat.umd.min.js"
1212
import { track } from "@atom-ide-community/nuclide-commons/analytics"
1313
import * as RemoteDebuggerCommandServiceLocal from "./RemoteDebuggerCommandService"
1414
import nullthrows from "nullthrows"
15-
import { getLogger } from "log4js"
1615

1716
let _rpcService: ?nuclide$RpcService = null
1817

@@ -52,6 +51,7 @@ export function listenToRemoteDebugCommands(): IDisposable {
5251
const rootUri = hostname === "local" ? "" : nuclideUri.createRemoteUri(hostname, "/")
5352
const service = getRemoteDebuggerCommandServiceByNuclideUri(rootUri)
5453
if (service == null) {
54+
const { getLogger } = require("log4js")
5555
getLogger().error("null remote command service for uri:", rootUri)
5656
return Observable.empty()
5757
} else {

0 commit comments

Comments
 (0)