Skip to content

Commit e2a8777

Browse files
author
Sunil Thaha
committed
chore(logging): minor corrections
Signed-off-by: Sunil Thaha <[email protected]>
1 parent a1102b5 commit e2a8777

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/kepler_model/estimate/estimator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def start(self):
136136
s = self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
137137
s.bind(self.socket_path)
138138
s.listen(1)
139-
logger.info(f"started serving on {self.socket_path}")
139+
logger.info(f"listening on {self.socket_path}")
140140
try:
141141
while True:
142142
connection, _ = s.accept()
@@ -193,6 +193,7 @@ def run(log_level: str, machine_spec: str):
193193
datefmt="%Y-%m-%d %H:%M:%S",
194194
)
195195

196+
logger.info("starting estimator")
196197
set_env_from_model_config()
197198
clean_socket()
198199
signal.signal(signal.SIGTERM, sig_handler)

src/kepler_model/util/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def load_json(path: str, name: str = ""):
7676
res = json.load(f)
7777
return res
7878
except Exception as err:
79-
logger.error(f"fail to load json {filepath}: {err}")
79+
logger.error(f"failed to load json {filepath}: {err}")
8080
return None
8181

8282

0 commit comments

Comments
 (0)