Correction of the number of log lines displayed by default

This commit is contained in:
OSPanel 2024-02-02 03:05:25 +03:00
parent cadeff4f1c
commit ab26b5b7cb
2 changed files with 4 additions and 4 deletions

View file

@ -192,7 +192,7 @@ if defined OSP_TMPVAL (
echo:
if not exist "{root_dir}\logs\%OSP_TMP_NAME%.log" echo %ESC%[90m{lang_empty_log}%ESC%[0m
if exist "{root_dir}\logs\%OSP_TMP_NAME%.log" for %%S in ("{root_dir}\logs\%OSP_TMP_NAME%.log") do if %%~zS==0 (echo %ESC%[90m{lang_empty_log}%ESC%[0m) else (
if "%3"=="" "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%OSP_TMP_NAME%.log"
if "%3"=="" "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%OSP_TMP_NAME%.log" 15
if not "%3"=="" "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%OSP_TMP_NAME%.log" %3
echo %ESC%[0m
)
@ -204,7 +204,7 @@ if defined OSP_TMPVAL (
if /i not "%OSP_TMP_NAME%"=="all" echo:
if not exist "{root_dir}\logs\%%a_console.log" echo %ESC%[90m{lang_empty_log}%ESC%[0m
if exist "{root_dir}\logs\%%a_console.log" for %%S in ("{root_dir}\logs\%%a_console.log") do if %%~zS==0 (echo %ESC%[90m{lang_empty_log}%ESC%[0m) else (
if "%3"=="" "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%%a_console.log"
if "%3"=="" "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%%a_console.log" 15
if not "%3"=="" "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%%a_console.log" %3
echo %ESC%[0m
)
@ -257,7 +257,7 @@ for %%a in (%OSP_TMPVAL%) do (
"{root_dir}\system\bin\curl.exe" -f -s {cmd_api_url}/%1/%%a/%3
if !errorlevel! gtr 0 call :echo_error %1 %OSP_TMP_NAME% %3
)
if !errorlevel!==0 if /i "%1"=="status" if exist "{root_dir}\logs\%%a_console.log" for %%S in ("{root_dir}\logs\%%a_console.log") do if not %%~zS==0 echo: & "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%%a_console.log" & echo %ESC%[0m
if !errorlevel!==0 if /i "%1"=="status" if exist "{root_dir}\logs\%%a_console.log" for %%S in ("{root_dir}\logs\%%a_console.log") do if not %%~zS==0 echo: & "{root_dir}\system\bin\tail.exe" "{root_dir}\logs\%%a_console.log" 15 & echo %ESC%[0m
)
endlocal
goto end

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c1a2722b60b37da74fdb6ace79bf903a268b8d68ca098d330176b8a10daa5ed
oid sha256:fd6ed28fdc959c4a973f71417407d3c03d8e4343955a5a970b0cfa00a6c19b44
size 1592320