-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix log formatting with salt logger #622
Comments
Hey team, interesting issue. |
Been playing around with the repo and I think I'm missing something to get local working. tldr: Followed local guide, but unable to get ./optimus serve to work from default configs. Under the impression localhost should work near out of the box. Followed steps as per: https://github.com/odpf/optimus#running-locally
Since server isn't starting follow next steps within: https://odpf.github.io/optimus/docs/getting-started/configuration/
From here generated the optimus.yaml using values from this configuration page
attempt deploy:
See server issue and scroll down on that page to: server config copy config.sample.yaml and uncomment as config.yaml
try serve again
Please assist @Mryashbhardwaj |
@Mryashbhardwaj, this issue will be addressed by this PR. to be more specific, under this commit. |
@camclark , let me try to help you. in Optimus, we have two configurations (at the moment). one for client, which is named in case of your error: 2022/09/27 23:47:18 /Users/{myuser}/Documents/repos/open-source/optimus/internal/store/postgres/migration.go:165
[error] failed to initialize database, got error failed to connect to `host=localhost user=user database=database`: dial error (dial tcp [::1]:5432: connect: connection refused)
WARN[0000] Shutting down server
INFO[0000] Server shutdown complete
Error: unable to create server: error executing migration up: error initializing db client: error initializing db client: failed to connect to `host=localhost user=user database=database`: dial error (dial tcp [::1]:5432: connect: connection refused)
🔥 unable to complete request successfully try to check your database connection. it can be because you misconfigured it (like typos). or when reaching the database itself there is some problem, maybe connection issue or connection refused. if you don't have password to your database (such as for local), try to remove that, such as: ...
serve:
db:
dsn: postgres://user@localhost:5432/db_name?sslmode=disable
max_idle_connection: 5
max_open_connection: 10
... |
Describe the bug
current logger does not support argumentative logging as used on https://github.com/odpf/optimus/blob/main/job/deployer.go#L51
we need to format this log using
fmt.Sprintf
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
the logs should be formatted
The text was updated successfully, but these errors were encountered: