mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
call strify only if debugging enabled
This commit is contained in:
parent
898a9cdb8e
commit
42b6fb993b
@ -27,6 +27,10 @@
|
|||||||
|
|
||||||
(use-modules (gnucash core-utils))
|
(use-modules (gnucash core-utils))
|
||||||
|
|
||||||
|
(eval-when (compile load eval expand)
|
||||||
|
(load-extension "libgncmod-engine" "scm_init_sw_engine_module"))
|
||||||
|
(use-modules (sw_engine))
|
||||||
|
|
||||||
;; Load the srfis (eventually, we should see where these are needed
|
;; Load the srfis (eventually, we should see where these are needed
|
||||||
;; and only have the use-modules statements in those files).
|
;; and only have the use-modules statements in those files).
|
||||||
(use-modules (srfi srfi-1))
|
(use-modules (srfi srfi-1))
|
||||||
@ -63,7 +67,8 @@
|
|||||||
(gnc-scm-log-msg (strify items)))
|
(gnc-scm-log-msg (strify items)))
|
||||||
|
|
||||||
(define (gnc:debug . items)
|
(define (gnc:debug . items)
|
||||||
(gnc-scm-log-debug (strify items)))
|
(when (qof-log-check "gnc" G-LOG-LEVEL-DEBUG)
|
||||||
|
(gnc-scm-log-debug (strify items))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; the following functions are initialized to log message to tracefile
|
;; the following functions are initialized to log message to tracefile
|
||||||
|
Loading…
Reference in New Issue
Block a user