diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-14 01:42:21 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-06-23 19:51:28 +0200 |
| commit | 4181c68e98c9623ea1d5a747678d825662205920 (patch) | |
| tree | 56e1a49d4b97c03d01150a002a0920f4ff904496 | |
| parent | 6cdae64ba9ce3a9f02f3a7437cfff078d942cba1 (diff) | |
Add log entry for the HTTP server.
| -rw-r--r-- | src/lib/dcpomatic_log.h | 2 | ||||
| -rw-r--r-- | src/lib/log_entry.cc | 1 | ||||
| -rw-r--r-- | src/lib/log_entry.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_log.h b/src/lib/dcpomatic_log.h index 6a1c3a6ec..2372c8d01 100644 --- a/src/lib/dcpomatic_log.h +++ b/src/lib/dcpomatic_log.h @@ -44,4 +44,6 @@ extern std::shared_ptr<Log> dcpomatic_log; #define LOG_DEBUG_PLAYER_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_DEBUG_PLAYER); #define LOG_DEBUG_AUDIO_ANALYSIS(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS); #define LOG_DEBUG_AUDIO_ANALYSIS_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS); +#define LOG_HTTP(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_HTTP); +#define LOG_HTTP_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_HTTP); diff --git a/src/lib/log_entry.cc b/src/lib/log_entry.cc index d5065e03a..af9148e68 100644 --- a/src/lib/log_entry.cc +++ b/src/lib/log_entry.cc @@ -38,6 +38,7 @@ int const LogEntry::TYPE_DEBUG_VIDEO_VIEW = 0x080; int const LogEntry::TYPE_DISK = 0x100; int const LogEntry::TYPE_DEBUG_PLAYER = 0x200; int const LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS = 0x400; +int const LogEntry::TYPE_HTTP = 0x800; using std::string; diff --git a/src/lib/log_entry.h b/src/lib/log_entry.h index 95c4e4f1f..89357d201 100644 --- a/src/lib/log_entry.h +++ b/src/lib/log_entry.h @@ -42,6 +42,7 @@ public: static const int TYPE_DISK; static const int TYPE_DEBUG_PLAYER; ///< the Player class static const int TYPE_DEBUG_AUDIO_ANALYSIS; ///< audio analysis job + static const int TYPE_HTTP; explicit LogEntry (int type); virtual ~LogEntry () {} |
