Skip to content

Conversation

@yangliyl
Copy link

dsn, err := getDataSources()
if err != nil {
level.Error(logger).Log("msg", "Failed reading data sources", "err", err.Error())
os.Exit(1)
}
if len(dsn) == 0 {
level.Error(logger).Log("msg", "Couldn't find environment variables describing the datasource to use")
os.Exit(1)
}

default value of datasource when no environment variables
[postgresql://:@]

check is always false

Signed-off-by: yangliyl <yangli_yl@qq.com>
@yangliyl yangliyl force-pushed the fix/default-data-source branch from ec4a68e to 342a078 Compare April 13, 2022 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant