Skip to content

Commit 848560d

Browse files
Change log severity
1 parent cd10772 commit 848560d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tableDrawer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function shouldPrintOnCurrentPage(
332332
const minRowHeight = row.getMinimumRowHeight(table.columns, doc)
333333
const minRowFits = minRowHeight < remainingPageSpace
334334
if (minRowHeight > maxRowHeight) {
335-
console.error(
335+
console.log(
336336
`Will not be able to print row ${row.index} correctly since it's minimum height is larger than page height`,
337337
)
338338
return true
@@ -346,7 +346,7 @@ function shouldPrintOnCurrentPage(
346346
const rowHigherThanPage = row.getMaxCellHeight(table.columns) > maxRowHeight
347347
if (rowHigherThanPage) {
348348
if (rowHasRowSpanCell) {
349-
console.error(
349+
console.log(
350350
`The content of row ${row.index} will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.`,
351351
)
352352
}

src/widthCalculator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function calculateWidths(doc: DocHandler, table: Table) {
5454
// reduce font size, increase page size or remove custom cell widths
5555
// to allow more columns to be reduced in size
5656
resizeWidth = resizeWidth < 1 ? resizeWidth : Math.round(resizeWidth)
57-
console.warn(
57+
console.log(
5858
`Of the table content, ${resizeWidth} units width could not fit page`,
5959
)
6060
}

0 commit comments

Comments
 (0)