mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'dev' into 'sec/bump-tornado'
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
fd86533b47
@ -6,10 +6,12 @@ TBD
|
|||||||
- Fix zip imports so the root dir selection is functional ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/764))
|
- Fix zip imports so the root dir selection is functional ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/764))
|
||||||
- Fix bug where full access gives minimal access ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/768))
|
- Fix bug where full access gives minimal access ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/768))
|
||||||
- Bump tornado & requests for sec advisories ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/774))
|
- Bump tornado & requests for sec advisories ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/774))
|
||||||
|
- Ensure audit.log exists or create it on Crafty startup ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/771))
|
||||||
### Tweaks
|
### Tweaks
|
||||||
- Add info note to default creds file ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/760))
|
- Add info note to default creds file ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/760))
|
||||||
- Remove navigation label from sidebar ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/766))
|
- Remove navigation label from sidebar ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/766))
|
||||||
- Add a thread dump to support logs ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/769))
|
- Add a thread dump to support logs ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/769))
|
||||||
|
- Remove text from status page and use symbols ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/770))
|
||||||
### Lang
|
### Lang
|
||||||
- Add remaining `he_IL`, `th_TH` translations for 4.4.0 Release ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/761))
|
- Add remaining `he_IL`, `th_TH` translations for 4.4.0 Release ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/761))
|
||||||
<br><br>
|
<br><br>
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
<span class="text-warning"><i class="fas fa-exclamation-triangle"></i></span>
|
<span class="text-warning"><i class="fas fa-exclamation-triangle"></i></span>
|
||||||
</td>
|
</td>
|
||||||
<td id="server_motd_{{ server['stats']['server_id']['server_id'] }}">
|
<td id="server_motd_{{ server['stats']['server_id']['server_id'] }}">
|
||||||
<span class="text-warning">Crafty can't get infos from this Server </span>
|
<span class="text-warning"><i class="fa-solid fa-link-slash"></i> </span>
|
||||||
</td>
|
</td>
|
||||||
<td id="server_version_{{ server['stats']['server_id']['server_id'] }}">
|
<td id="server_version_{{ server['stats']['server_id']['server_id'] }}">
|
||||||
<span class="text-warning"><i class="fas fa-question"></i></i></span>
|
<span class="text-warning"><i class="fas fa-question"></i></i></span>
|
||||||
@ -148,7 +148,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div id="m_server_motd_{{ server['stats']['server_id']['server_id'] }}">
|
<div id="m_server_motd_{{ server['stats']['server_id']['server_id'] }}">
|
||||||
<span class="text-warning"><i class="fas fa-exclamation-triangle"></i> Crafty can't get infos from
|
<span class="text-warning"><i class="fas fa-exclamation-triangle"></i> Crafty can't get info from
|
||||||
this Server </span>
|
this Server </span>
|
||||||
</div>
|
</div>
|
||||||
<div id="m_server_version_{{ server['stats']['server_id']['server_id'] }}"></div>
|
<div id="m_server_version_{{ server['stats']['server_id']['server_id'] }}"></div>
|
||||||
@ -223,9 +223,9 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
server_players.innerHTML = `<span class="text-warning"><i class="fas fa-exclamation-triangle"></i></span>`;
|
server_players.innerHTML = `<span class="text-warning"><i class="fas fa-exclamation-triangle"></i></span>`;
|
||||||
server_motd.innerHTML = `<span class="text-warning">Crafty can't get infos from this Server </span>`;
|
server_motd.innerHTML = `<span class="text-warning"><i class="fa-solid fa-link-slash"></i> </span>`;
|
||||||
server_version.innerHTML = `<span class="text-warning"><i class="fas fa-question"></i></i></span>`;
|
server_version.innerHTML = `<span class="text-warning"><i class="fas fa-question"></i></i></span>`;
|
||||||
m_server_motd.innerHTML = `<span class="text-warning"><i class="fas fa-exclamation-triangle"></i> Crafty can't get infos from this Server </span>`;
|
m_server_motd.innerHTML = `<span class="text-warning"><i class="fas fa-exclamation-triangle"></i> <i class="fa-solid fa-link-slash"></i> </span>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update Online Status */
|
/* Update Online Status */
|
||||||
|
9
main.py
9
main.py
@ -278,6 +278,15 @@ def setup_logging(debug=True):
|
|||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
).close()
|
).close()
|
||||||
|
|
||||||
|
if not helper.check_file_exists(
|
||||||
|
os.path.join(APPLICATION_PATH, "logs", "audit.log")
|
||||||
|
):
|
||||||
|
open(
|
||||||
|
os.path.join(APPLICATION_PATH, "logs", "audit.log"),
|
||||||
|
"a",
|
||||||
|
encoding="utf-8",
|
||||||
|
).close()
|
||||||
|
|
||||||
if os.path.exists(logging_config_file):
|
if os.path.exists(logging_config_file):
|
||||||
# open our logging config file
|
# open our logging config file
|
||||||
with open(logging_config_file, "rt", encoding="utf-8") as f:
|
with open(logging_config_file, "rt", encoding="utf-8") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user