Skip to content
Snippets Groups Projects
Commit 71285aec authored by Daniel Hornung's avatar Daniel Hornung
Browse files

STY: Formatting.

parent a561306b
No related branches found
No related tags found
1 merge request!3Better Error Handling and Logging
Pipeline #10982 passed
Pipeline: caosdb-cppinttest

#10983

    This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
    ......@@ -114,8 +114,8 @@ private:
    /**
    * Messages convey information about the state and result of transactions.
    *
    * A Message object can be thought of as kinf of a generalized error object in other frameworks.
    * Please have a look at MessageCodes for more details.
    * A Message object can be thought of as kinf of a generalized error object in
    * other frameworks. Please have a look at MessageCodes for more details.
    */
    class Message {
    public:
    ......
    ......@@ -82,16 +82,17 @@ auto initialize_logging(const LoggingConfiguration &configuration) -> void;
    *
    * Typical inheriting configurations exist for console, files and syslog.
    *
    * When a SinkConfiguration is created from a configuration, the sink configuration must contain a
    * \p destination key which matches one of the keywords for implemented sinks. At the moment of
    * writing this documentation, valid destinations are:
    * When a SinkConfiguration is created from a configuration, the sink
    * configuration must contain a \p destination key which matches one of the
    * keywords for implemented sinks. At the moment of writing this documentation,
    * valid destinations are:
    *
    * \li \p file
    * \li \p console
    * \li \p syslog
    *
    * A \p level keyword sets the logging level, if it exists at the sink or logging level of the
    * configuration.
    * A \p level keyword sets the logging level, if it exists at the sink or
    * logging level of the configuration.
    */
    class SinkConfiguration : public LevelConfiguration {
    public:
    ......@@ -131,8 +132,8 @@ private:
    /**
    * The file name is the destination, the directory can be set separately.
    *
    * If there is a `directory` key in the configuration, that will be used as a default, otherwise it
    * is the current directory.
    * If there is a `directory` key in the configuration, that will be used as a
    * default, otherwise it is the current directory.
    */
    class FileSinkConfiguration : public SinkConfiguration {
    public:
    ......
    ......@@ -31,8 +31,9 @@
    * API. Messages (and their codes) represent the state of the entities in a
    * transaction or the server.
    *
    * For a specification of the message codes, look at the protobuf documentation. The sources and
    * documentation can be found at https://gitlab.indiscale.com/caosdb/src/caosdb-proto.
    * For a specification of the message codes, look at the protobuf documentation.
    * The sources and documentation can be found at
    * https://gitlab.indiscale.com/caosdb/src/caosdb-proto.
    */
    namespace caosdb::entity {
    ......
    ......@@ -26,8 +26,9 @@
    * TransactionStatus indicates the current status of a transaction and, when it
    * has already terminated, whether the transaction has been successful or not.
    *
    * A status code of 0 denotes a generic success state, positive values indicate errors, and negative
    * values indicate other states, such as different stages of a transaction in process.
    * A status code of 0 denotes a generic success state, positive values indicate
    * errors, and negative values indicate other states, such as different stages
    * of a transaction in process.
    */
    #include "caosdb/status_code.h"
    ......
    ......@@ -53,8 +53,7 @@ inline auto load_string_file(const path &path) -> std::string {
    /**
    * @brief Return the environment variable KEY, or FALLBACK if it does not exist.
    */
    inline auto get_env_var(const char *key, const char *fallback) -> const
    char * {
    inline auto get_env_var(const char *key, const char *fallback) -> const char * {
    const char *val = getenv(key);
    if (val == nullptr) {
    return fallback;
    ......
    ......@@ -56,8 +56,7 @@ const char *caosdb_constants_COMPATIBLE_SERVER_VERSION_PRE_RELEASE() {
    return caosdb::COMPATIBLE_SERVER_VERSION_PRE_RELEASE;
    }
    const char *caosdb_utility_get_env_var(const char *name,
    const char *fallback) {
    const char *caosdb_utility_get_env_var(const char *name, const char *fallback) {
    return caosdb::utility::get_env_var(name, fallback);
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment