Skip to content

Commit 5deaecf

Browse files
authored
Merge pull request #573 from JamesKunstle/data_processing_logger
uses `__name__` in logging.getLogger
2 parents 31aa826 + a6c9212 commit 5deaecf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/instructlab/training/data_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
UNMASK_BEGIN_TOKEN = "<|UNMASK_BEGIN|>"
2828
UNMASK_END_TOKEN = "<|UNMASK_END|>"
2929

30-
logger = logging.getLogger("instructlab.training")
30+
logger = logging.getLogger(__name__)
3131

3232

3333
def check_valid_sample(

src/instructlab/training/main_ds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
)
9191
import instructlab.training.data_process as dp
9292

93-
logger = logging.getLogger("instructlab.training")
93+
logger = logging.getLogger(__name__)
9494

9595

9696
def setup_optimizer(args, model):

0 commit comments

Comments
 (0)