mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Update logging in sandbox code, and log tracebacks as single log messages.
Summary: - Replace logger module by the standard module 'logging'. - When a log message from the sandbox includes newlines (e.g. for tracebacks), keep those lines together in the Node log message. Previously each line was a different message, making it difficult to view tracebacks, particularly in prod where each line becomes a separate message object. - Fix assorted lint errors. Test Plan: Added a test for the log-line splitting and escaping logic. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3956
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import collections
|
||||
import itertools
|
||||
import logging
|
||||
import types
|
||||
|
||||
import six
|
||||
@@ -9,13 +10,12 @@ import column
|
||||
import depend
|
||||
import docmodel
|
||||
import functions
|
||||
import logger
|
||||
import lookup
|
||||
from records import adjust_record, Record as BaseRecord, RecordSet as BaseRecordSet
|
||||
import relation as relation_module # "relation" is used too much as a variable name below.
|
||||
import usertypes
|
||||
|
||||
log = logger.Logger(__name__, logger.INFO)
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_default_func_name(col_id):
|
||||
|
||||
Reference in New Issue
Block a user