Skip to content

Commit

Permalink
Убрал сильно подбробный лог работы. По умолчанию prod режим.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shenja Sosna committed Apr 19, 2016
1 parent 77951ae commit 8be05ed
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tools/compile_cf.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ rem %oscriptpath% %olib%gitsync\src\vanessa.os decompile %cd%\build\1cv8.cf %cd%
rem echo %mypath%
rem cd

SET RUNNER_ENV=production

oscript runner.os compile ..\src\cf ..\build\1cv8_USTR.cf

1 change: 1 addition & 0 deletions tools/compile_cf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ connstring=
USERPWD=
#connstring=--ibname /F"~/projects/onec/itil"
#USERPWD=--db-user base --db-pwd 234567890
export RUNNER_ENV=production

oscript $real_path/runner.os compile ./cf ./build/1cv8.cf

1 change: 1 addition & 0 deletions tools/compile_cfe.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ echo "%cd%"
echo "%mypath%"
SET connstring=--ibname /F"d:/Apache/base/wms/"
SET USERPWD=
SET RUNNER_ENV=production

oscript %mypath%/runner.os compileext .\src\cfe\test2 test2 %connstring% %USERPWD%
oscript %mypath%/runner.os compileext .\src\cfe\test test %connstring% %USERPWD%
1 change: 1 addition & 0 deletions tools/compile_cfe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ real_path=`pwd`$stripped
#USERPWD=
connstring=--ibname /F"~/projects/onec/itil"
USERPWD=--db-user base --db-pwd 234567890
export RUNNER_ENV=production

oscript $real_path/runner.os compileext ./cfe/test2 test2 $connstring $USERPWD

1 change: 1 addition & 0 deletions tools/compile_epf.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ SET USERPWD=

rem SET connstring=--ibname /F"C:\Users\eugens\Documents\Rarus\ITIL\1"
rem SET USERPWD=--db-user base --db-pwd 234567890
SET RUNNER_ENV=production

oscript %mypath%/runner.os compileepf .\epf\ .\build\epf\ %connstring% %USERPWD%

1 change: 1 addition & 0 deletions tools/compile_epf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ real_path=`pwd`$stripped

connstring=
USERPWD=
export RUNNER_ENV=production
#connstring=--ibname /F"~/projects/onec/itil"
#USERPWD=--db-user base --db-pwd 234567890

Expand Down
1 change: 1 addition & 0 deletions tools/decompile_cf.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SET mypath=%~dp0
SET RUNNER_ENV=production

oscript %mypath%/runner.os decompile .\build\1cv8.cf .\src\cf

1 change: 1 addition & 0 deletions tools/decompile_cf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ connstring=
USERPWD=
#connstring=--ibname /F"~/projects/onec/itil"
#USERPWD=--db-user base --db-pwd 234567890
export RUNNER_ENV=production

oscript $real_path/runner.os decompile ./build/1cv8.cf ./cf

1 change: 1 addition & 0 deletions tools/decompile_cfe.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ rem SET connstring=--ibname /F"d:/Apache/base/wms/"
SET connstring=
SET USERPWD=
rem SET connstring=/F"%cd%\build\ib\"
SET RUNNER_ENV=production

oscript %mypath%/runner.os decompileext test2 .\src\cfe\test2 %connstring% %USERPWD%
oscript %mypath%/runner.os decompileext test .\src\cfe\test %connstring% %USERPWD%
1 change: 1 addition & 0 deletions tools/decompile_cfe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ real_path=`pwd`$stripped
#USERPWD=
connstring=--ibname /F"~/projects/onec/itil"
USERPWD=--db-user base --db-pwd 234567890
export RUNNER_ENV=production

oscript $real_path/runner.os decompileext test2 ./cfe/test2 $connstring $USERPWD

1 change: 1 addition & 0 deletions tools/decompile_epf.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ rem SET connstring=--ibname /F"C:\Users\eugens\Documents\Rarus\ITIL\1"
rem SET USERPWD=--db-user base --db-pwd 234567890
SET connstring=
SET USERPWD=
SET RUNNER_ENV=production

oscript %mypath%/runner.os decompileepf .\build\epf\ .\epf\ %connstring% %USERPWD%

3 changes: 2 additions & 1 deletion tools/decompile_epf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ real_path=`pwd`$stripped
#echo "called path: $called_path"
#echo "stripped: $stripped"
#echo "pwd: `pwd`"
#echo "real path: $real_path"
echo "real path: $real_path"

connstring=
USERPWD=
#connstring=--ibname /F"~/projects/onec/itil"
#USERPWD=--db-user base --db-pwd 234567890
export RUNNER_ENV=production

oscript $real_path/runner.os decompileepf ./build/epf/ ./epf/ $connstring $USERPWD

16 changes: 14 additions & 2 deletions tools/runner.os
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,13 @@

Функция ЗапускВКоманднойСтроке()
Лог_cmdline = Логирование.ПолучитьЛог("oscript.lib.cmdline");
Лог_cmdline.УстановитьУровень(УровниЛога.Отладка);
СИ = Новый СистемнаяИнформация;
УровеньЛога = УровниЛога.Отладка;
РежимРаботы = СИ.ПолучитьПеременнуюСреды("RUNNER_ENV");
Если ЗначениеЗаполнено(РежимРаботы) И РежимРаботы = "production" Тогда
УровеньЛога = УровниЛога.Информация;
КонецЕсли;
Лог_cmdline.УстановитьУровень(УровеньЛога);
// Лог.УстановитьУровень(УровниЛога.Отладка);
ВыводПоУмолчанию = Новый ВыводЛогаВКонсоль();
Лог_cmdline.ДобавитьСпособВывода(ВыводПоУмолчанию);
Expand Down Expand Up @@ -1102,8 +1108,14 @@
СистемнаяИнформация = Новый СистемнаяИнформация;
ЭтоWindows = Найти(ВРег(СистемнаяИнформация.ВерсияОС), "WINDOWS") > 0;

УровеньЛога = УровниЛога.Отладка;
РежимРаботы = СистемнаяИнформация.ПолучитьПеременнуюСреды("RUNNER_ENV");
Если ЗначениеЗаполнено(РежимРаботы) И РежимРаботы = "production" Тогда
УровеньЛога = УровниЛога.Информация;
КонецЕсли;

Лог = Логирование.ПолучитьЛог("oscript.app.v8files-extractor");
Лог.УстановитьУровень(УровниЛога.Отладка);
Лог.УстановитьУровень(УровеньЛога);

ВыводПоУмолчанию = Новый ВыводЛогаВКонсоль();
Лог.ДобавитьСпособВывода(ВыводПоУмолчанию);
Expand Down
1 change: 1 addition & 0 deletions tools/vanessa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ real_path=`pwd`$stripped
#USERPWD=
connstring=--ibname /F"~/projects/onec/it"
USERPWD=--db-user base --db-pwd 234567890
export RUNNER_ENV=production

oscript $real_path/runner.os vanessa ./tools/vanessa-behavoir/features/Libraries/Пауза ./build/reports.xml $connstring $USERPWD --pathsettings ./.conf.json

1 change: 1 addition & 0 deletions tools/xunit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ real_path=`pwd`$stripped
#USERPWD=
connstring=--ibname /F"~/projects/onec/it"
USERPWD=--db-user base --db-pwd 234567890
export RUNNER_ENV=production

oscript $real_path/runner.os xunit ./tools/xUnitFor1C/Tests/Core/ --report "./build/report.xml" $connstring $USERPWD --path ./tools/xUnitFor1C/xddTestRunner.epf

Expand Down

0 comments on commit 8be05ed

Please sign in to comment.