Skip to content

Commit a6c9212

Browse files
author
James Kunstle
committed
uses __name__ in logging.getLogger
previously, was using a string-literal for the logger name, e.g. `instructlab.training` Signed-off-by: James Kunstle <jkunstle@redhat.com>
1 parent 31aa826 commit a6c9212

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)