mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
Add toggle for verbose web logs
This commit is contained in:
parent
774efe062f
commit
4567f52668
@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
<label>{{ $t("webOptions.tagAuth") }}</label>
|
<label>{{ $t("webOptions.tagAuth") }}</label>
|
||||||
<b-form-input v-model="options.tag_auth" @change="update()" :disabled="Boolean(options.auth)"></b-form-input>
|
<b-form-input v-model="options.tag_auth" @change="update()" :disabled="Boolean(options.auth)"></b-form-input>
|
||||||
|
|
||||||
|
<b-form-checkbox v-model="options.verbose" @change="update()">
|
||||||
|
{{$t("webOptions.verbose")}}
|
||||||
|
</b-form-checkbox>
|
||||||
</b-card>
|
</b-card>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
@ -81,6 +81,7 @@ export default {
|
|||||||
auth0Domain: "Auth0 domain",
|
auth0Domain: "Auth0 domain",
|
||||||
auth0ClientId: "Auth0 client ID",
|
auth0ClientId: "Auth0 client ID",
|
||||||
auth0PublicKey: "Auth0 public key",
|
auth0PublicKey: "Auth0 public key",
|
||||||
|
verbose: "Verbose logs"
|
||||||
},
|
},
|
||||||
backendOptions: {
|
backendOptions: {
|
||||||
title: "Search backend options",
|
title: "Search backend options",
|
||||||
|
@ -201,6 +201,7 @@ class WebOptions(BaseModel):
|
|||||||
auth0_client_id: str = None
|
auth0_client_id: str = None
|
||||||
auth0_public_key: str = None
|
auth0_public_key: str = None
|
||||||
auth0_public_key_file: str = None
|
auth0_public_key_file: str = None
|
||||||
|
verbose: bool = False
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
@ -232,6 +233,8 @@ class WebOptions(BaseModel):
|
|||||||
args.append(f"--tag-auth={self.tag_auth}")
|
args.append(f"--tag-auth={self.tag_auth}")
|
||||||
if self.dev:
|
if self.dev:
|
||||||
args.append(f"--dev")
|
args.append(f"--dev")
|
||||||
|
if self.verbose:
|
||||||
|
args.append(f"--very-verbose")
|
||||||
|
|
||||||
args.extend(self.indices)
|
args.extend(self.indices)
|
||||||
|
|
||||||
|
@ -144,8 +144,6 @@ class Sist2Api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_getIndexRoot(indexId) {
|
_getIndexRoot(indexId) {
|
||||||
console.log(indexId)
|
|
||||||
console.log(this.sist2Info.indices.find(idx => idx.id === indexId))
|
|
||||||
return this.sist2Info.indices.find(idx => idx.id === indexId).root;
|
return this.sist2Info.indices.find(idx => idx.id === indexId).root;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user