Commit graph

23 commits

Author SHA1 Message Date
Julian Brost
f04fa03b9a build(deps): bump github.com/icinga/icinga-go-library
Icinga Go Library no longer uses the hard-coded project name "Icinga DB" when
printing the version, that name has to be given manually now.

Bumps [github.com/icinga/icinga-go-library](https://github.com/icinga/icinga-go-library) from 0.2.0 to 0.3.0.
- [Commits](https://github.com/icinga/icinga-go-library/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: github.com/icinga/icinga-go-library
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-23 15:27:41 +02:00
Eric Lippmann
7c068d4adf Use icinga-go-library 2024-05-24 09:56:28 +02:00
Eric Lippmann
b396a365e0 config#FromYAMLFile(): Parse result into value pointed to by the passed argument 2024-05-23 12:42:28 +02:00
Eric Lippmann
9f8354466a config#ParseFlags(): Parse result into value pointed to by the passed argument 2024-05-23 10:08:48 +02:00
Eric Lippmann
c070615e64 Move Redis related code to redis 2024-05-22 11:51:22 +02:00
Eric Lippmann
3072a10c7f Move internal/config#FromYAMLFile() to config#FromYAMLFile() 2024-05-22 11:51:22 +02:00
Eric Lippmann
e5a830cabc Move internal/config#ParseFlags() to config#ParseFlags() 2024-05-22 11:51:22 +02:00
Eric Lippmann
8beb8616ad Move database related code from internal to database 2024-05-22 11:51:22 +02:00
Eric Lippmann
f54a142815 Move icingadb#DB to database#DB 2024-05-22 11:51:21 +02:00
Eric Lippmann
9e70aa808c Move config to internal/config 2024-05-22 11:51:21 +02:00
Julian Brost
c6e843146f Add more information to icingadb --version ouput
This commit adds the build information (Go version, Git commit) and system
information (distribution with version) to the output of `icingadb --version`.

When exporting the source code using `git archive`, Git will insert the version
information using the export-subst attribute (adds both a pretty version string
like `git describe` and the commit hash).

`go build` also adds some Git commit information to the resulting binary when
building from a Git working directory (only the commit hash and a flag if there
are uncommitted changes, but no pretty version string).

Note that `go build` does not include Git version information in the binary, so
when running directly from a Git working directory, commit information won't be
available in the binary, but when doing this, you should be well aware which
version you're running anyways.

System information is obtained from the `os-release` file.
2022-05-23 16:03:56 +02:00
Julian Brost
6ee893df8d Don't print a stacktrace on config errors 2022-05-10 16:47:09 +02:00
Eric Lippmann
ccda48234e Use custom logger for accessing the interval for periodic logging 2021-11-05 17:57:22 +01:00
Ravi Kumar Kempapura Srinivasa
0aa646c218 Use child loggers for Redis and database 2021-09-28 17:30:11 +02:00
Alexander A. Klimov
3d0c56fe2e Don't print stack on CLI parsing failure or --help
refs #334
2021-08-10 13:22:04 +02:00
Alexander Aleksandrovič Klimov
5a91d8acf6
Merge pull request #338 from Icinga/feature/support-icingadb-version-again-335
Support --version
2021-08-10 11:17:51 +02:00
Eric Lippmann
4977d8f1f4 Add missing doc in command 2021-08-09 10:30:53 +02:00
Alexander A. Klimov
31fd1963f2 Support --version
refs #335
2021-08-06 12:40:15 +02:00
Eric Lippmann
752db18a91 Print stack traces 2021-06-21 13:20:44 +02:00
Alexander A. Klimov
8cbf24932e Add stack of current goroutine to errors 2021-05-31 16:53:57 +02:00
Noah Hilverling
44c734f72d Improve database and HA logging 2021-05-25 09:49:48 +02:00
Julian Brost
a474c83651 Replace persisted instance ID with a random one and remove old rows from icingadb_instance 2021-03-08 13:01:52 +01:00
Eric Lippmann
6ca9d36c8b Add cmd 2021-03-04 00:50:24 +01:00