mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
log JSON api calls when in DEBUG mode (#2263)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
4f74b9aabe
commit
4931f681e4
@ -1,11 +1,11 @@
|
||||
import { JsonApi, JsonApiErrorParsed } from "./json-api";
|
||||
import { KubeJsonApi } from "./kube-json-api";
|
||||
import { Notifications } from "../components/notifications";
|
||||
import { apiKubePrefix, apiPrefix, isDevelopment } from "../../common/vars";
|
||||
import { apiKubePrefix, apiPrefix, isDebugging, isDevelopment } from "../../common/vars";
|
||||
|
||||
export const apiBase = new JsonApi({
|
||||
apiBase: apiPrefix,
|
||||
debug: isDevelopment,
|
||||
debug: isDevelopment || isDebugging,
|
||||
});
|
||||
export const apiKube = new KubeJsonApi({
|
||||
apiBase: apiKubePrefix,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user