Kayou
ebcf3c79ff
Fix "log list" : use root_dir for iglob / make sure we use absolute paths ( #1913 )
...
* use root_dir for iglob, fix parent_symlink path and check if it exists
* fix log path
* do not try to read a yaml of a symlink to /dev/null
* use hidden files, needs python 3.11 (bookworm)
* don't worry, I'm an expert!
* Update log.py: log_file -> log_md_fullpath (otherwise it feel like log_file refers to the .log)
* Update log.py: remove debug statement
* Update log.py: revert unecessary if change
---------
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2024-07-17 16:45:43 +02:00
alexAubin
a0bc7926c4
🎨 Format Python code with Black
2024-07-12 13:24:32 +00:00
Alexandre Aubin
588742f31b
log: optimize log list perf by creating a 'cache' symlink pointing to the log's parent
2024-07-11 17:35:37 +02:00
Alexandre Aubin
1bb81e8f69
log: small hack when dumping log right after script failure, prevent a weird edge case where it'll dump the log of the resource provisioning instead of the script, guessing it's because it doesn't find 'ynh_exit_properly' near the end of the log ?
2024-07-07 16:38:46 +02:00
Alexandre Aubin
31ae5d1eaa
Misc fixes for flake8/mypy
2024-06-23 01:05:39 +02:00
Alexandre Aubin
06c8fbc881
logs: misc ad-hoc tweaks to limit the noise in log sharing
2024-06-21 16:26:07 +02:00
Alexandre Aubin
0a5dd1b099
Update log.py: fix fstring with no arg
2024-05-19 20:51:45 +02:00
manor-tile
45e3f6b1a2
error if X in last-X is too big
2024-03-21 11:16:02 +01:00
BELLAHBIB Ayoub
f9d3ae1084
show_log: support names 'last' and 'last-x' in path
...
Co-authored-by: manor-tile <159947643+manor-tile@users.noreply.github.com>
2024-03-21 11:16:02 +01:00
yunohost-bot
c695aa549a
[CI] Format code with Black
2024-02-09 20:12:27 +00:00
Alexandre Aubin
a44ea14141
Update copyright headers to 2024 using maintenance/update_copyright_headers.sh
2024-01-13 19:26:47 +01:00
Alexandre Aubin
848adf89c8
log: Previous trick about getting rid of setting didnt work, forgot to use metadata instead of self.metadata
2023-02-20 17:52:27 +01:00
Alexandre Aubin
ba4f192557
maintenance: new year, update copyright header
2023-02-02 23:51:14 +01:00
yunohost-bot
ca3fb85286
[CI] Format code with Black
2023-02-02 22:43:47 +00:00
Alexandre Aubin
a9ac55e4a5
log/appv2: don't dump all settings in log metadata
2023-02-02 23:20:52 +01:00
yunohost-bot
b943c69c8b
[CI] Format code with Black
2023-02-01 17:10:08 +00:00
Alexandre Aubin
bd7081baf2
maintenance: cleanup .py file headers + automate boring copyright headers...
2022-10-09 18:38:34 +02:00
Alexandre Aubin
0f9560ffe0
Merge branch 'bullseye' into manifestv2
2022-01-12 22:33:59 +01:00
Alexandre Aubin
26b837b085
Merge branch 'dev' into bullseye
2022-01-07 02:54:55 +01:00
Alexandre Aubin
858370dced
Merge branch 'bullseye' into manifestv2
2021-12-31 15:27:42 +01:00
Kay0u
fc0cf79123
Merge branch 'dev' into bullseye
2021-12-30 15:29:16 +01:00
Alexandre Aubin
c8d4e4853b
Merge branch 'bullseye' into manifestv2
2021-12-04 01:01:00 +01:00
Alexandre Aubin
a16edfc526
Merge branch 'bullseye' into rework-dir-topology
2021-11-14 21:48:54 +01:00
Alexandre Aubin
5de9e4fe6a
Yolorework the repo dir structure
2021-11-10 17:56:02 +01:00