Skip to content

Commit

Permalink
Decreasing level of warining
Browse files Browse the repository at this point in the history
Summary:
Creating empty timeseries is actualy doesn't very dangerous situation, so it make sense to decrease warning livel to info.
It cause a lot of problem as generate mess with real warnings.
This change according to user requests.

Differential Revision: D49684672

fbshipit-source-id: c140e0e5fb153a2aa4a0901c2f4e666f5d2d1c28
  • Loading branch information
irumata authored and facebook-github-bot committed Sep 29, 2023
1 parent 8751bbb commit 9ba43bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kats/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def __init__( # noqa C901
if df.empty:
self._time = pd.Series([], name=time_col_name, dtype=float)
self._value = pd.Series([], name=DEFAULT_VALUE_NAME, dtype=float)
logging.warning("Initializing empty TimeSeriesData object")
logging.info("Initializing empty TimeSeriesData object")
# Otherwise initialize TimeSeriesData from DataFrame
else:
# Ensuring time column is present in DataFrame
Expand Down Expand Up @@ -363,7 +363,7 @@ def __init__( # noqa C901
elif not time and not value:
self._time = pd.Series([], name=time_col_name)
self._value = pd.Series([], name=DEFAULT_VALUE_NAME)
logging.warning("Initializing empty TimeSeriesData object")
logging.info("Initializing empty TimeSeriesData object")

# Error if only one of time or value is None
else:
Expand Down

0 comments on commit 9ba43bf

Please sign in to comment.