<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-pkgsite/internal/log/log.go, branch main</title>
<subtitle>Fork of golang.org/x/pkgsite with my patches.</subtitle>
<id>http://git.kilabit.info/go-x-pkgsite/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go-x-pkgsite/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/'/>
<updated>2026-04-14T16:19:25Z</updated>
<entry>
<title>internal/api: test ServePackage with db</title>
<updated>2026-04-14T16:19:25Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2026-04-09T20:55:25Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=81095845401a2ac64bc5ee43a4f9b013207d3b7e'/>
<id>urn:sha1:81095845401a2ac64bc5ee43a4f9b013207d3b7e</id>
<content type='text'>
Test the ServePackage function against a real database, as well as the
fake data source.

- Modules and packages must be redistributable, or the DB strips
  the documentation.

- Documentation must contain source code.

We must temporarily skip the dependency tests, to reduce the diffs on
this change. The test is still important, because it asserts that the
pkgsite command has only a few dependencies. To re-establish it, we
will move the API tests to internal/testing/api.

Change-Id: I67243ea2345c5e735edbdd6ee5bf2349a6b1eb60
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/765502
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ethan Lee &lt;ethanalee@google.com&gt;
Reviewed-by: Hyang-Ah Hana Kim &lt;hyangah@gmail.com&gt;
</content>
</entry>
<entry>
<title>cmd/log: move stackdriver logging to its own package</title>
<updated>2023-08-07T18:54:25Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2023-08-01T19:43:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=5237f1872710d7e174a34d654dc7835c73adf597'/>
<id>urn:sha1:5237f1872710d7e174a34d654dc7835c73adf597</id>
<content type='text'>
This change breaks out the stackdriver logging to its own package. It
also only does logging of trace ids and labels to the stackdriver
logger, to keep the logging interface simple.

For golang/go#61399

Change-Id: I9a25d0c6391d1667fe476e5fdc30fc057f07c40f
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/515375
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Run-TryBot: Michael Matloob &lt;matloob@golang.org&gt;
Reviewed-by: Jamal Carvalho &lt;jamal@golang.org&gt;
</content>
</entry>
<entry>
<title>all: convert interface{} to any</title>
<updated>2022-11-15T20:10:34Z</updated>
<author>
<name>Hana (Hyang-Ah) Kim</name>
<email>hyangah@gmail.com</email>
</author>
<published>2022-11-10T23:01:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=694b5d3c2a971c2a1dcdf7ab34e521b762bd326d'/>
<id>urn:sha1:694b5d3c2a971c2a1dcdf7ab34e521b762bd326d</id>
<content type='text'>
Change-Id: I1f3b7cc8899c7707abb01e3d14807c37c3451382
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/449695
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jamal Carvalho &lt;jamal@golang.org&gt;
Run-TryBot: Hyang-Ah Hana Kim &lt;hyangah@gmail.com&gt;
</content>
</entry>
<entry>
<title>cmd,internal: refactor UseStackdriverLogger</title>
<updated>2021-07-14T13:36:10Z</updated>
<author>
<name>Julie Qiu</name>
<email>julie@golang.org</email>
</author>
<published>2021-07-12T12:27:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=1b77be57702b11e3e7ccac187f99ffa9789f02e9'/>
<id>urn:sha1:1b77be57702b11e3e7ccac187f99ffa9789f02e9</id>
<content type='text'>
Because UseStackdriverLogger currently uses the config package, the
config package uses the standard library logger instead of internal/log
from the pkgsite repo. Since UseStackdriverLogger only requires a few
pieces of information from cfg, it is refactored to accept those args
explicitly.

Change-Id: I80bbbb1e8de7b1d21b685f201f55e948c3946b75
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/333930
Trust: Julie Qiu &lt;julie@golang.org&gt;
Run-TryBot: Julie Qiu &lt;julie@golang.org&gt;
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
<entry>
<title>internal/log: add warning level</title>
<updated>2020-09-15T21:10:25Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2020-09-15T19:21:14Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=dda05078585a5440bed001baa471f7fe8a2af740'/>
<id>urn:sha1:dda05078585a5440bed001baa471f7fe8a2af740</id>
<content type='text'>
Change-Id: I76977535302b20df174d219a722fc5d839cd83b7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/255057
Trust: Jonathan Amsterdam &lt;jba@google.com&gt;
Run-TryBot: Jonathan Amsterdam &lt;jba@google.com&gt;
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Julie Qiu &lt;julie@golang.org&gt;
</content>
</entry>
<entry>
<title>internal/{log,worker}: use new config functions</title>
<updated>2020-09-09T15:05:43Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2020-09-04T12:02:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=b97c691c1b05c525e7ac5ee5134683ee5761840c'/>
<id>urn:sha1:b97c691c1b05c525e7ac5ee5134683ee5761840c</id>
<content type='text'>
Use Config.DeploymentEnvironment and Config.Application instead
of existing methods for extracting that information from the ServiceID.

Change-Id: I6d8927297e51a71568e28e06067aea8756fdb3ab
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/253138
Reviewed-by: Julie Qiu &lt;julie@golang.org&gt;
</content>
</entry>
<entry>
<title>internal/{config,log}: configure logging for GKE</title>
<updated>2020-09-03T17:01:32Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2020-09-02T23:44:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=c0560e8098bd73700cf4a05e6012c9362d3e39ce'/>
<id>urn:sha1:c0560e8098bd73700cf4a05e6012c9362d3e39ce</id>
<content type='text'>
Set the monitored resource and log labels so that when we run on GKE,
the logs will show up where we expect them to, under the "Kubernetes
Container" resource in the log viewer.

Clicking on the logs from the GKE console
(e.g. https://pantheon.corp.google.com/kubernetes/workload?project=go-discovery-exp)
will also work.

Also, log to stdout on GKE because logs to stderr have Error severity,
which is distracting.

Change-Id: I3a60800587cfefc6e158e76e4606b932d48ddeae
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/252898
Reviewed-by: Julie Qiu &lt;julie@golang.org&gt;
</content>
</entry>
<entry>
<title>internal: rename AppMonitoredResource to MonitoredResource</title>
<updated>2020-09-03T16:06:22Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2020-09-02T23:29:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=3f8d018ceb68cd672abc1f808af7971f728e0509'/>
<id>urn:sha1:3f8d018ceb68cd672abc1f808af7971f728e0509</id>
<content type='text'>
We'll be supporting GKE monitored resources shortly in addtiion to
AppEngine, so the "App" is wrong.

Change-Id: I6225225732db24edcfc5c140e1efe58efe657168
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/252897
Reviewed-by: Julie Qiu &lt;julie@golang.org&gt;
</content>
</entry>
<entry>
<title>internal/log: add log level support</title>
<updated>2020-08-06T13:27:19Z</updated>
<author>
<name>Amarjeet Anand</name>
<email>amarjeetanandsingh@gmail.com</email>
</author>
<published>2020-07-30T03:24:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=3ad2709a84869c47159f5610e868ffaa2078e0c0'/>
<id>urn:sha1:3ad2709a84869c47159f5610e868ffaa2078e0c0</id>
<content type='text'>
This change introduces minimum log level support.
GO_DISCOVERY_LOG_LEVEL config can be used to set the log level.

When set, no logs below GO_DISCOVERY_LOG_LEVEL will be printed.
Possible log levels are debug, info, error, fatal.

Log severity sequence is debug &lt; info &lt; error &lt; fatal.
In case of invalid/empty log level, it print all logs.

Fixes golang/go#40339

Change-Id: I66116e6778eb6386bf1e8df6947078a78fece691
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/245797
Reviewed-by: Julie Qiu &lt;julie@golang.org&gt;
</content>
</entry>
<entry>
<title>internal/{log,worker}: label fetch log messages with module@version</title>
<updated>2020-06-04T00:01:50Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2020-06-02T17:21:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=d1b4cbad386ea2b55c965f04f6ccfe3a7026e79f'/>
<id>urn:sha1:d1b4cbad386ea2b55c965f04f6ccfe3a7026e79f</id>
<content type='text'>
- Make it possible to add a label to a context, so it appears in all log messages.
- Add the module and version as a label when fetching.

This will make it easy to find all log messages related to the fetch
of a single module.

Change-Id: I6c564b6aa58a494180d61168e739ef62dd67a64c
Reviewed-on: https://team-review.git.corp.google.com/c/golang/discovery/+/760101
CI-Result: Cloud Build &lt;devtools-proctor-result-processor@system.gserviceaccount.com&gt;
Reviewed-by: Julie Qiu &lt;julieqiu@google.com&gt;
</content>
</entry>
</feed>
