# HG changeset patch # User RhodeCode Admin # Date 2023-12-15 08:46:05 # Node ID 570229d4a078561178c35213f15877008fd124a7 # Parent cb968864cf01b7bed89140f2178697d285f47c13 fix(usage): remove print as it leaks to various other outputs like git stdout diff --git a/rhodecode/__init__.py b/rhodecode/__init__.py --- a/rhodecode/__init__.py +++ b/rhodecode/__init__.py @@ -19,11 +19,15 @@ import os import datetime import collections +import logging + now = datetime.datetime.now() now = now.strftime("%Y-%m-%d %H:%M:%S") + '.' + f"{int(now.microsecond/1000):03d}" -print(f'{now} Starting RhodeCode imports...') +log = logging.getLogger(__name__) +log.debug(f'{now} Starting RhodeCode imports...') + VERSION = tuple(open(os.path.join( os.path.dirname(__file__), 'VERSION')).read().split('.'))