Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
hive
clive
Commits
a966bf40
Verified
Commit
a966bf40
authored
1 month ago
by
Mateusz Żebrak
Browse files
Options
Downloads
Patches
Plain Diff
Log current mode and screen stacks in debug loop
parent
ae66745e
Branches
bw_mi/hivemind_wit_sa_btracker_rebase
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clive/__private/ui/app.py
+4
-2
4 additions, 2 deletions
clive/__private/ui/app.py
with
4 additions
and
2 deletions
clive/__private/ui/app.py
+
4
−
2
View file @
a966bf40
...
@@ -197,7 +197,7 @@ class Clive(App[int]):
...
@@ -197,7 +197,7 @@ class Clive(App[int]):
should_enable_debug_loop
=
safe_settings
.
dev
.
should_enable_debug_loop
should_enable_debug_loop
=
safe_settings
.
dev
.
should_enable_debug_loop
if
should_enable_debug_loop
:
if
should_enable_debug_loop
:
debug_loop_period_secs
=
safe_settings
.
dev
.
debug_loop_period_secs
debug_loop_period_secs
=
safe_settings
.
dev
.
debug_loop_period_secs
self
.
set_interval
(
debug_loop_period_secs
,
self
.
_
_
debug_log
)
self
.
set_interval
(
debug_loop_period_secs
,
self
.
_debug_log
)
if
Profile
.
is_any_profile_saved
():
if
Profile
.
is_any_profile_saved
():
self
.
switch_mode
(
"
unlock
"
)
self
.
switch_mode
(
"
unlock
"
)
...
@@ -367,10 +367,12 @@ class Clive(App[int]):
...
@@ -367,10 +367,12 @@ class Clive(App[int]):
def
run_worker_with_screen_remove_guard
(
self
,
awaitable
:
Awaitable
[
None
])
->
None
:
def
run_worker_with_screen_remove_guard
(
self
,
awaitable
:
Awaitable
[
None
])
->
None
:
self
.
run_worker_with_guard
(
awaitable
,
self
.
_screen_remove_guard
)
self
.
run_worker_with_guard
(
awaitable
,
self
.
_screen_remove_guard
)
async
def
_
_debug_log
(
self
)
->
None
:
async
def
_debug_log
(
self
)
->
None
:
logger
.
debug
(
"
===================== DEBUG =====================
"
)
logger
.
debug
(
"
===================== DEBUG =====================
"
)
logger
.
debug
(
f
"
Currently focused:
{
self
.
focused
}
"
)
logger
.
debug
(
f
"
Currently focused:
{
self
.
focused
}
"
)
logger
.
debug
(
f
"
Current mode:
{
self
.
current_mode
}
"
)
logger
.
debug
(
f
"
Screen stack:
{
self
.
screen_stack
}
"
)
logger
.
debug
(
f
"
Screen stack:
{
self
.
screen_stack
}
"
)
logger
.
debug
(
f
"
Screen stacks:
{
self
.
_screen_stacks
}
"
)
if
self
.
world
.
is_profile_available
:
if
self
.
world
.
is_profile_available
:
cached_dgpo
=
self
.
world
.
node
.
cached
.
dynamic_global_properties_or_none
cached_dgpo
=
self
.
world
.
node
.
cached
.
dynamic_global_properties_or_none
...
...
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