Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterc
Commits
e9c30c8c
Commit
e9c30c8c
authored
Feb 20, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more logging to template config loading for debugging
parent
584643a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
overlay-controller.js
web/overlay-controller.js
+6
-2
No files found.
web/overlay-controller.js
View file @
e9c30c8c
...
@@ -134,7 +134,9 @@ class WebOverlayController {
...
@@ -134,7 +134,9 @@ class WebOverlayController {
*/
*/
async
loadTemplateConfig
()
{
async
loadTemplateConfig
()
{
try
{
try
{
console
.
log
(
'[OverlayController] Loading template config...'
);
const
config
=
await
this
.
apiRequest
(
'/template-config'
);
const
config
=
await
this
.
apiRequest
(
'/template-config'
);
console
.
log
(
'[OverlayController] Template config response:'
,
config
);
if
(
config
&&
config
.
templates
&&
config
.
templates
.
length
>
0
)
{
if
(
config
&&
config
.
templates
&&
config
.
templates
.
length
>
0
)
{
this
.
templateSequence
=
config
.
templates
;
this
.
templateSequence
=
config
.
templates
;
...
@@ -149,12 +151,14 @@ class WebOverlayController {
...
@@ -149,12 +151,14 @@ class WebOverlayController {
}
}
}
}
this
.
log
(
`Loaded template config:
${
this
.
templateSequence
.
length
}
templates, rotating every
${
this
.
rotatingTime
}
s`
);
console
.
log
(
`[OverlayController] Loaded template config:
${
this
.
templateSequence
.
length
}
templates, rotating every
${
this
.
rotatingTime
}
s`
);
console
.
log
(
'[OverlayController] Template sequence:'
,
this
.
templateSequence
.
map
(
t
=>
t
.
name
).
join
(
', '
));
// Start template rotation
// Start template rotation
this
.
startTemplateRotation
();
this
.
startTemplateRotation
();
}
else
{
}
else
{
this
.
log
(
'No template sequence configured, using default template'
);
console
.
log
(
'[OverlayController] No template sequence configured, using default template'
);
console
.
log
(
'[OverlayController] Config:'
,
config
);
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'[OverlayController] Failed to load template config:'
,
error
);
console
.
error
(
'[OverlayController] Failed to load template config:'
,
error
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment