freenet / freenetorg-website

The code behind https://freenet.org/ and https://staging.freenet.org/
GNU Affero General Public License v3.0
8 stars 3 forks source link

non-errors being logged as errors #4

Open sanity opened 2 years ago

sanity commented 2 years ago

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?

Derek52 commented 2 years ago

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