File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
workflow_dispatch :
12
12
13
+ env :
14
+ ROBOT_CALL_TRACING_ENABLED : 1
15
+
13
16
jobs :
14
17
test :
15
18
runs-on : ${{ matrix.os }}
@@ -114,6 +117,7 @@ jobs:
114
117
- uses : Gr1N/setup-poetry@v7
115
118
116
119
- run : pip install poetry-dynamic-versioning
120
+ - run : pip install GitPython
117
121
118
122
- run : poetry install
119
123
@@ -125,7 +129,7 @@ jobs:
125
129
126
130
- name : package
127
131
run : |
128
- poetry run npm run package
132
+ npm run package
129
133
130
134
- name : Upload VSCode package
131
135
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ filterwarnings = "ignore:.*Using or importing the ABCs from 'collections' instea
117
117
testpaths = [" tests" ]
118
118
junit_suite_name = " robotcode"
119
119
log_cli = true
120
- log_cli_level = " DEBUG "
120
+ log_cli_level = 4
121
121
log_cli_format = " %(levelname)s %(name)s: %(message)s"
122
122
asyncio_mode = " auto"
123
123
Original file line number Diff line number Diff line change 4
4
import functools
5
5
import inspect
6
6
import logging
7
+ import os
7
8
import reprlib
8
9
import time
9
10
from enum import Enum
@@ -298,8 +299,12 @@ def __repr__(self) -> str:
298
299
level = logging .getLevelName (logger .getEffectiveLevel ())
299
300
return f"{ self .__class__ .__name__ } (name={ repr (logger .name )} , level={ repr (level )} )"
300
301
301
- _call_tracing_enabled = False
302
- _call_tracing_default_level = TRACE
302
+ _call_tracing_enabled = (
303
+ "ROBOT_CALL_TRACING_ENABLED" in os .environ and os .environ ["ROBOT_CALL_TRACING_ENABLED" ] != "0"
304
+ )
305
+ _call_tracing_default_level = (
306
+ os .environ ["ROBOT_CALL_TRACING_LEVEL" ] if "ROBOT_CALL_TRACING_LEVEL" in os .environ else TRACE
307
+ )
303
308
304
309
@classmethod
305
310
def set_call_tracing (cls , value : bool ) -> None :
You can’t perform that action at this time.
0 commit comments