Skip to content
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

non-errors being logged as errors #4

Open
sanity opened this issue Sep 17, 2022 · 1 comment
Open

non-errors being logged as errors #4

sanity opened this issue Sep 17, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@sanity
Copy link
Contributor

sanity commented Sep 17, 2022

Looking at the logs in Google Cloud, here is an example log entry:

{
  "textPayload": "[main] INFO Application - Responding at http://0.0.0.0:8080",
  "insertId": "r7iddfioc0p12ds0",
  "resource": {
    "type": "k8s_container",
    "labels": {
      "location": "us-east1",
      "cluster_name": "freenet-org-east1",
      "pod_name": "freenet-org-staging-6bd8c784dd-grvkg",
      "namespace_name": "freenetorg",
      "project_id": "freenet-353920",
      "container_name": "freenet-org-app-staging"
    }
  },
  "timestamp": "2022-09-17T17:29:00.064010148Z",
  "severity": "ERROR",
  "labels": {
    "compute.googleapis.com/resource_name": "gk3-freenet-org-east1-nap-qxu2i4zq-61f7e03d-ttwd",
    "k8s-pod/pod-template-hash": "6bd8c784dd",
    "k8s-pod/app": "freenet-org-staging"
  },
  "logName": "projects/freenet-353920/logs/stderr",
  "receiveTimestamp": "2022-09-17T17:29:04.819376748Z"
}

Note that the SEVERITY is ERROR even though this is an INFO level log message. Is this because its being logged to stderr?

@sanity sanity added the bug Something isn't working label Sep 17, 2022
@Derek52
Copy link
Collaborator

Derek52 commented Sep 17, 2022

I'm not sure. I'll have to do a little reading on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants