Skip to content

Commit

Permalink
logging to stderr in services
Browse files Browse the repository at this point in the history
  • Loading branch information
cottand committed Aug 10, 2024
1 parent e567bbe commit ec21373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion services/lib/bedrock/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
func Init() {
http.Handle("/metrics", promhttp.Handler())

logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))
logger := slog.New(slog.NewJSONHandler(os.Stderr, nil))

slog.SetDefault(logger)

Expand Down
13 changes: 5 additions & 8 deletions services/s-portfolio-stats/job.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let
lib = import ../../jobs/lib;
version = "c865dfa";
version = "e567bbe";
name = "s-portfolio-stats";
cpu = 120;
mem = 500;
Expand Down Expand Up @@ -65,13 +65,10 @@ lib.mkJob name {

config = {
image = "ghcr.io/cottand/selfhosted/${name}:${version}";
# ports = ["http" "grpc", "metrics", "webdav"];
# args = [
# "--config"
# "/local/config.toml"
# "--listen"
# "${bind}:${toString ports.http}"
# ];
};
env = {
HTTP_HOST = lib.localhost;
HTTP_PORT = toString ports.http;
};
resources = {
cpu = cpu;
Expand Down

0 comments on commit ec21373

Please sign in to comment.