Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
everest-logging-server
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aleksandra Edwards
everest-logging-server
Commits
049a248f
Commit
049a248f
authored
1 month ago
by
Aleksandra Edwards
Browse files
Options
Downloads
Patches
Plain Diff
Fixes logging and MQTT Configuration
parent
0712f965
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
checkForNewLogs.py
+2
-3
2 additions, 3 deletions
checkForNewLogs.py
getExistingLogs.py
+0
-2
0 additions, 2 deletions
getExistingLogs.py
with
2 additions
and
5 deletions
checkForNewLogs.py
+
2
−
3
View file @
049a248f
...
...
@@ -37,8 +37,7 @@ def check_for_new_logs():
if
compare_logs
():
print
(
"
New logs found:
"
)
new_logs
=
compare_logs
()
insert_log_into_collection
(
new_logs
)
for
line
in
new_logs
:
print
(
line
.
strip
())
log_dict
=
{
'
log
'
:
new_logs
}
insert_log_into_collection
(
log_dict
)
else
:
print
(
"
No new logs found.
"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
getExistingLogs.py
+
0
−
2
View file @
049a248f
...
...
@@ -33,8 +33,6 @@ def get_file_contents_from_container(container_name, directory_path):
file_list
=
[
file_name
for
file_name
in
file_list
if
file_name
.
endswith
(
"
.log
"
)
and
not
file_name
.
endswith
(
"
.security.log
"
)]
print
(
file_list
)
file_contents
=
[]
for
file_name
in
file_list
:
if
file_name
.
strip
():
# Ensure non-empty file names
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment